Hallo, I have a table (see below) that has 4 entries. Note that ColumnA and ColumnB have the same value, and ColumnC and columnD will have a different value.
ColumnA ColumnB ColumnC ColumnD
------- ------- ------- -------
xx yy AAA 333
xx yy BBB 555
xx yy AAA 333
xx yy BBB 555
I tried to select the entire record using a Group By query as follows:
SELECT ColumnC from TableA GROUP BY ColumnC;
This query shows only ColumnC, but my expectation is to select the entire record, not just ColumnC.
UPDATE: My expected result:
ColumnA ColumnB ColumnC ColumnD
------- ------- ------- -------
xx yy AAA 333
xx yy BBB 555
Can I find out how I can do this?
Thank @!
source
share