Quantcast
Channel: Answers for "where clause in delete statement with two conditions"
Browsing latest articles
Browse All 10 View Live

Answer by aRookieBIdev

Please remove the delete and try select query with the same where clause to check the resul it thats what you would like to delete. Thanks, Kannan

View Article


Answer by Cyborg

A wild try DELETE EntryAttribute FROM EntryAttribute AS t1 INNER JOIN attributestring AS t2 on t1.attributeid = t2.attributeid and 2 = (SELECT COUNT(DISTINCT AttributeID FROM attributestring t3 WHERE...

View Article


Answer by Leo

Try this - --Check First before you Delete to make sure you are going to delete the correct record SELECT A.* From EntryAttribute A INNER JOIN attributestring Y ON A.attributeid = = Y.attributeid AND...

View Article

Answer by Kev Riley

Whilst I don't particularly like the query, without some data and schemas is difficult to get it 100% correct, but why are you joining to another table in the exists subqueries? Delete from...

View Article

Answer by ozamora

My approach is to always try minimizing locks -- Dump the records to be delete into a temp SELECT A.entryid INTO #temp_delete From EntryAttribute A INNER JOIN attributestring Y ON A.attributeid = =...

View Article

Browsing latest articles
Browse All 10 View Live


Latest Images