I would like to pull unique records of a SINGLE column but not the other related columns. When I use DISTINCT, it pulls up all the records which are unique across the columns. Here is the code....
What I would like to see, is Distinct records from column A, and not from other columns. But I would like to have the records from other columns to show up when I pull distict records from column A.
If I change the sql statement to -
Get the following error...
ORDERBY clause (columnB,Column C)conflicts with Distinct.
Can some one help me, please?
Regards,
Omnitha
Code:
SELECT distinct columnA,columnB,columnC FROM Table ORDER by columnA,columnB,columnC;
If I change the sql statement to -
Code:
SELECT distinct columnA FROM Table ORDER by ColumnA,columnB,columnC;
ORDERBY clause (columnB,Column C)conflicts with Distinct.
Can some one help me, please?
Regards,
Omnitha
Comment