selecting unique values from a column

The Solution to selecting unique values from a column is


Use the DISTINCT operator in MySQL:

SELECT DISTINCT(Date) AS Date FROM buy ORDER BY Date DESC;

~ Answered on 2011-12-20 07:10:36


Most Viewed Questions: