Andrew, Wednesday, October 16, 2002, 11:01:05 AM, you wrote: AW> I was wondering if anyone knew of a paramter that can be put on the end of a AW> select statement when querying a table which only pulled out one unique AW> record based on a field. AW> I.e AW> If i had a drink database and in it were 10 cokes 10 fantas 10 pepsi's what AW> select statement would i need to pull out 1 coke,1 fanta,1 pepsi . AW> Thanks for your help, a virtual beer to whoever answers my question :) DISTINCT may help you: http://www.mysql.com/doc/en/Selecting_columns.html http://www.mysql.com/doc/en/SELECT.html
-- For technical support contracts, goto https://order.mysql.com/?ref=ma02-010c This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php