Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql select last row for each group

SELECT * 
FROM CUSTOMERS
WHERE id IN (SELECT  MAX(id) FROM CUSTOMERS GROUP BY PERSON_NAME);
Source by thispointer.com #
 
PREVIOUS NEXT
Tagged: #mysql #select #row #group
ADD COMMENT
Topic
Name
1+5 =