Re: Return 1 instance of each unique record?
| From: | DL Neil | Date: | Fri, 06 Dec 2002 20:31:28 +0000 |
| Subject: | Re: Return 1 instance of each unique record? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-23876@lists.php.net to get a copy of this message | ||
Hi Doug,
> How do I get MySQL to summarize a query so that I receive only 1 instance
> per similar record. I.E. if you have 10 records with name "Smith" and 5
> records with "Barney, etc, that it would return 2 records instead of 15.
Try the MySQL DISTINCT feature.
=dn