Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

select distinct after join

SELECT DISTINCT table1.field1, table2.field2 FROM table1
JOIN table2 ON table1.id = table2.id 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #distinct #join
ADD COMMENT
Topic
Name
2+6 =