PDA

View Full Version : query were names aren't the same


grudz
12-01-2005, 06:34 AM
Hi,

I have a DB with a name column. Sometimes, the names might duplicated, so i was wondering how to write a query that says, show me 1 of the records instead of both...?

Thanx

Velox Letum
12-01-2005, 08:14 AM
SELECT DISTINCT name FROM table

or...

SELECT name FROM table LIMIT 1