Reply to Re: Tricky MySQL involving a join and a min

Your name:

Reply:


Posted by Simon on 10/13/42 11:41

I don't see how this solves the problem.

All this does is select the first cruise_stop for each cruise in the natural
order of the cruise. It doesn't find the cruise_stop for the first departure
!


"strawberry" <zac.carey@gmail.com> wrote in message
news:1141486552.775111.321130@z34g2000cwc.googlegroups.com...
> Does GROUP BY work on 4? If so, turn the query around...
>
> SELECT cruises.cruise_id,cruise_name,departure_name
> FROM cruise_stops
> LEFT JOIN cruises ON cruise_stops.cruise_id = cruises.cruise_id
> GROUP BY cruises.cruise_id
> ORDER BY cruises.cruise_id
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация