M
Mota
Hello;
I have a table (DistributorsTBL) having a Primary Key(RecordID) and a NON
uinque field named dID and some other fields.I want to select all fields of
records having a same dID (records having repeating dIDs) and at the same
time exist in SqlDrugsWeNeed.
Suppose that we have 3 records having dID=1,one record having dID=2,five
records having dID=3,and 1 record having dID=4.Now i want to select records
having dID=1 and records having dID=3 (repeating dIDs,and records dID=2 and
dID=4 not be selected) in condition that they exist in SqlDrugsWeNeed.
Assuming records of dID=1 and dID=3 are returned by SqlDrugsWeNeed,the
requested SQL must return 8 records (3+5).Any suggestions?
Thank you in advance for your help.
I have a table (DistributorsTBL) having a Primary Key(RecordID) and a NON
uinque field named dID and some other fields.I want to select all fields of
records having a same dID (records having repeating dIDs) and at the same
time exist in SqlDrugsWeNeed.
Suppose that we have 3 records having dID=1,one record having dID=2,five
records having dID=3,and 1 record having dID=4.Now i want to select records
having dID=1 and records having dID=3 (repeating dIDs,and records dID=2 and
dID=4 not be selected) in condition that they exist in SqlDrugsWeNeed.
Assuming records of dID=1 and dID=3 are returned by SqlDrugsWeNeed,the
requested SQL must return 8 records (3+5).Any suggestions?
Thank you in advance for your help.