following is the MySQL query,
DELETE FROM ATTRIBUTE_INSTANCE
WHERE ATTRIBUTE_INSTANCE.ATTRIBUTE_NAME
IN
( SELECT CONCAT(ATTRIBUTE_TEMPLATE.TEMPLATE_ID,'.',ATTRIBUTE_TEMPLATE.ATTRIBUTE_NAME)
FROM ATTRIBUTE_TEMPLATE, TEMP_ENTITY_TABLE
WHERE ATTRIBUTE_TEMPLATE.TEMPLATE_ID=TEMP_ENTITY_TABLE.ENTITY_ID
);
I want to transform it to equivalent sql server query, but i failed to achieve. Can you please help me?
thanks
the only reason why it failed is because of the
CONCATmysql function, so forTSQLuse+instead ofCONCATalternately, you can also do DELETE with Join,