Hi all,
I want to query below table as such.
SELECT DISTINCT ID
FROM Table
ORDER by ID
Table
ID Field1
1 a
1 f
2 gh
2 fd
5 df
This would give me
ID
1
2
5
I also want to add on to the above query two more records 7 & 8
so i want the final table to look like
ID
1
2
5
7
8
How should i write the overall query?

Thx in advance.
I want to query below table as such.
SELECT DISTINCT ID
FROM Table
ORDER by ID
Table
ID Field1
1 a
1 f
2 gh
2 fd
5 df
This would give me
ID
1
2
5
I also want to add on to the above query two more records 7 & 8
so i want the final table to look like
ID
1
2
5
7
8
How should i write the overall query?

Thx in advance.