I have entries as follows:
key | name -------------- 1111 | aa 1111 | bb 2222 | cc
I need to select key and name when the key value is different. When I tried:
select distinct key, name from table;
I got all the rows since the query is different from the combination of columns: key and name . But I only need a great key , and I don't care about name . I have a lot of notes, so I need a practical method.
source share