[SQL] avoid duplicates when using SELECT
Issue
How to avoid duplicates in the results of a SQL query?
Solution
Simply use the DISTINCT clause and between the SELECT clause and the fields.
Example:
SELECT distinct id,name,surname FROM mytable
More informations available on this page:
http://dev.mysql.com/doc/refman/5.0/en/select.html