SQL Query
Hi All,
I have a list of records with "CORP_ID" and "INITIAL" columns
I am trying to delete records with the following condition;
Group the records based on "CORP_ID" and "INITIAL" columns and delete the records where the initial "JM" is not part of this group.
In this example, 3rd row (512 - GR) should be deleted.
CORP_ID INITIAL
346 JM
346 LB
512 GR
742 JM
742 LB
742 LH
Thanks for your help,
:)
MCinar
Love all the creatures because of the creator.
__________________
MCinar
Love all the creatures because of the creator.
|