HIi all,
Please find thee sql stmt:
'Select code,Name from class
order by code'
In resultset i get dupliacte records
only the code is duplicating the name field is different.
i want keep only one record of the two; if code '4' has two records then i need only one of them. so the code field is not duplicated.
Please advice me.
JOhn
i get following result set
'
258752 COMPUTER CDR-HP
258752 HP-COMPUTER CDR
258753 COMPUTER CDR-BASF
258753 BASF-COMPUTER CDR
258754 COMPUTER CDR-SAMSUNG
258754 SAMSUNG-COMPUTER CDR
258755 COMPUTER CDR W-SONY
258755 SONY-COMPUTER CDR W
258756 COMPUTER CDR W-IMATION
258756 IMATION-COMPUTER CDR W
258757 COMPUTER CDR W-HP
258757 HP-COMPUTER CDR W
258758 COMPUTER CDR W-SAMSUNG
258758 SAMSUNG-COMPUTER CDR W
258759 COMPUTER CDR W-BASF
258759 BASF-COMPUTER CDR W
258760 COMPUTER FLOPPY BOX-SONY
258760 SONY-COMPUTER FLOPPY BOX
*** Even the Best, did the Bad and Made the Best ***
John Philip
Please find thee sql stmt:
'Select code,Name from class
order by code'
In resultset i get dupliacte records
only the code is duplicating the name field is different.
i want keep only one record of the two; if code '4' has two records then i need only one of them. so the code field is not duplicated.
Please advice me.
JOhn
i get following result set
'
258752 COMPUTER CDR-HP
258752 HP-COMPUTER CDR
258753 COMPUTER CDR-BASF
258753 BASF-COMPUTER CDR
258754 COMPUTER CDR-SAMSUNG
258754 SAMSUNG-COMPUTER CDR
258755 COMPUTER CDR W-SONY
258755 SONY-COMPUTER CDR W
258756 COMPUTER CDR W-IMATION
258756 IMATION-COMPUTER CDR W
258757 COMPUTER CDR W-HP
258757 HP-COMPUTER CDR W
258758 COMPUTER CDR W-SAMSUNG
258758 SAMSUNG-COMPUTER CDR W
258759 COMPUTER CDR W-BASF
258759 BASF-COMPUTER CDR W
258760 COMPUTER FLOPPY BOX-SONY
258760 SONY-COMPUTER FLOPPY BOX
*** Even the Best, did the Bad and Made the Best ***
John Philip