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
)
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #select #columns #distinct
ADD COMMENT
Topic
Name
8+3 =