I have a table TEST which has like this records
ID USERNAME IPADDRS CONNTIME country
8238237 XYZ 10.16.199.20 11:00:00 USA
8255237 XYZ 10.16.199.20 11:00:00 UK
485337 ABC 10.16.199.22 12:25:00 UK
8238237 ABC 10.16.199.23 02:45:00 INDIA
I have to compare each record and has to get ID value of the records which has the country column as UK and having same USERNAME
,IPADDRS
and CONNTME
.
means USERNAME
,IPADDRSS
,CONNTIME
should be equal but final filter will go on country UK.
so output will be ID=8255237
for above Table.
Appreciate your help.Thanks!