Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

select other columns with distinct

SELECT * FROM table
WHERE id IN (
  SELECT MAX(id) FROM table GROUP BY name
)
 
PREVIOUS NEXT
Tagged: #select #columns #distinct
ADD COMMENT
Topic
Name
4+9 =