Jump to content
Sign in to follow this  
Henry Olive

Sql Delete

Recommended Posts

I wish everyone a healthy day
 

Interbase

DELETE FROM MDETAIL MD
JOIN ITEMS IT ON MD.ITEMNO=IT.ITEMNO
WHERE MD.RNO=120  and  IT.ITEMTYPE ='001';

I'm getting token unknown JOIN  err.msg
Thank You

Share this post


Link to post
DELETE FROM MDETAIL 
WHERE ID IN
(SELECT ID FROM MDETAIL MD
JOIN ITEMS IT ON MD.ITEMNO=IT.ITEMNO
WHERE MD.RNO=120  and  IT.ITEMTYPE ='001'); 

If you don't have a unique ID value, maybe your dbms has (rowid).

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×