Reply to Re: a common SQL problem perhaps - using group by

Your name:

Reply:


Posted by Captain Paralytic on 06/14/07 15:21

On 14 Jun, 15:56, "cluthz" <WHATEEVVE...@by.co.uk> wrote:
| But how do I know which row will be used when a customer has more
then one
| email address? Or to ask it another way, which email address will be
| displayed.

You don't as it is explained here:
http://dev.mysql.com/tech-resources/articles/debunking-group-by-myths.html

If you have a need for a specific one of the email addresses then do
something to identifyu and select that one.

If you want the first/last newest/oldest, ... then the Strawbery Query
is your friend.

[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

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