DELETE abc
FROM abc INNER JOIN xyz ON
abc.RECORD_TYPE = xyz.RECORD_TYPE AND
abc.IN = xyz.IN
OPTION (MERGE JOIN, LOOP JOIN)
can anyone tell me what exactly the query doing ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This
DELETEall the records from the tableabcwithJOINto another table. It deletes all the records in the tableabcthat has aRECORD_TYPEvalue equal to theRECORD_TYPEin the other table AND in the same time the valueINare equals in the two table.It is a normal
DELETEclause, Where theFROMcan contain extra joined table as specified by the documentation: