Showing posts with label Delete Mutliple related tables using Exist Join. Show all posts
Showing posts with label Delete Mutliple related tables using Exist Join. Show all posts

Thursday, 19 April 2018

Delete Mutliple related tables using Exist Join

 delete_from  inventitemlocation
                                    where  inventitemlocation.inventDimId == inventDim.inventDimId
                                        exists join inventitemlocationcountingstatus
                                              where inventitemlocationcountingstatus.InventDimId == inventitemlocation.inventDimId
                                                 && inventitemlocationcountingstatus.ItemId      == inventitemlocation.ItemId;