I have created code. Please check the link from the comment. i'm trying to write code which gives unique records for specific column but not for all columns. also tried [while(rs.next())]. but it prints all records with duplicated column values. i want to print table which is unique for specific two columns and duplicated values contain in other columns.Please prefer image which provide below then you will get exact idea what i'm looking for.
now here you can see left side table contain all duplicated values of column are extracted from result set. but i want all records but not duplicate values for first two columns.