On Tue, Aug 28, 2001 at 02:56:13PM -0700, Webmaster Odell wrote:
>
> We are trying to populate a form drop down box (HTML) with a column
> from our database. What is the query that will get us that without
> repeating the items (in the 500 or so records this column has only
> 12 non-repeated items)

You need to use the DISTINCT keyword in your query.

Jeremy
-- 
Jeremy D. Zawodny, <[EMAIL PROTECTED]>
Technical Yahoo - Yahoo Finance
Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936

MySQL 3.23.41-max: up 11 days, processed 135,375,627 queries (136/sec. avg)

---------------------------------------------------------------------
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

Reply via email to