againstTheWind
Programmer
I have a list of pictures associated with hotels. Each hotel (specified by a unique ID number) has several pictures associated with it. I would like to write a SELECT statement that will only return one photo from each hotel instead of all of the pictures.
the data looks like this:
HotelID pictureFilename
53 nicehotel.jpg
53 nicehote2.jpg
53 nicehote3.jpg
34 beachresort5.jpg
34 beachresort6.jpg
and the output that I want:
HotelID picturefilename
53 nicehotel1.jpg
34 beachresort5.jpg
etc...
thanks a bunch!!!
Sean