I have been dealing with this for quite sometime now and I could not be able get around this. It is like this, I have table with case_no
(alphanumeric), first_name
, last_name
and description
.
What I want do is to select only one row for each distinct first_name/last_name combination. So, for example
case_no | first_name | last_name
---------------------+----------------------------+------------------------
AAAAAAA | john | doe
BBBBBBB | Dog | dawg
CCCCCCC | Cat | kitten
DDDDDDD | john | doe
Given that example I want to retrieve the following rows:
case_no | first_name | last_name
---------------------+----------------------------+------------------------
BBBBBBB | Dog | dawg
CCCCCCC | Cat | kitten
DDDDDDD | john | doe
How do I do this?