I have a SQL SELECT statement that gives me a list of records. Some of them appear twice (or more) with the same ID. I tried the DISTINCT keyword, but then all the fields have to be the same. Here only the ID (and some other fields) are the same...
Is there another way of only seeing each ID once?
fe:
ID Name Reads
1 John Books
1 John Magazines
1 John Papers
2 Luc Books
Should give:
1 John
2 Luc
There are two tables in this example: Names and Reads, that are joined together in the SELECT statement...
Marc
Is there another way of only seeing each ID once?
fe:
ID Name Reads
1 John Books
1 John Magazines
1 John Papers
2 Luc Books
Should give:
1 John
2 Luc
There are two tables in this example: Names and Reads, that are joined together in the SELECT statement...
Marc