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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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
More Pages to Explore .....