How to delete duplicate record in query?

awiezzz

New member
Local time
Today, 18:01
Joined
Jun 16, 2004
Messages
9
Hi,
I have table tblSample (IdNo, SCode, StaffNo) where IdNo is AutoNumber. This is sample of data,

IdNo SCode StaffNo
10 ABC 50424
11 DEF 50424
12 GHI 50424
21 ABC 50424
22 DEF 50424
23 GHI 50424
26 ABC 50424
27 DEF 50424
28 GHI 50424

Is it possible for me to delete records from IdNo 21-23 and IdNo from IdNo 26-28. Any idea? Thanx in advance..;)
 
DELETE FROM tblSample WHERE (IdNo between 21 AND 23) OR (IdNo between 26 AND 28)
 

Users who are viewing this thread

Back
Top Bottom