I'm trying to retrieve only unique records from a table, but I guess something is wrong with my query.
select distinct RIID, duplicateInfo from duplicateRecords where RIID > 3920011
When I execute above query I get this result
RIID | duplicateInfo
___________________________________
3920011 Repeated:12009:CLEAR
3920011 Repeated:12012:CLEAR
4233901 Repeated:18129:HIT
4820129 Repeated:22901:PENDING
4820129 Repeated:22983:PENDING
And I want the below result
RIID | duplicateInfo
___________________________________
3920011 Repeated:12012:CLEAR
4233901 Repeated:18129:HIT
4820129 Repeated:22983:PENDING
Please any help would be highly appreciated.
Thanks