Hello-I'm trying to write a query that takes three tables (tblSegments, tblSegmentsNotes, and tblNotes). I'd like to get all of the segments, but only the first note for each segment. I can write the query that will give me all of the segments with all of the notes, but I'm drawing a bit of a blank on how to get just the first note. I had considered using derived tables, but I can't get the corresponding note to come up. Here is what I have for getting all the segments with all of the notes. SELECT tblSegments.segmentTravelingOn, tblSegments.segmentDirections, tblSegments.segmentDistance, tblNotes.noteFROM tblSegments LEFT OUTER JOIN tblNotes INNER JOIN tblSegmentsNotes sn ON tblNotes.noteID = sn.noteID ON tblSegments.segmentID = sn.segmentIDWHERE (tblSegments.segmentDate = '5/10/2003')
Thanks-Nick