devguru001
asked on
How to delete after selection
Hi Experts
I need to make a deletion of a row that was selected within an inner select.
The idea is :
Select (select min(col) from tableA where tableA.ID = tableB.ID
DELETE FROM tableA
WHERE tableA.ID = tableB.ID
) [colName]
From tableB
An alternate solution would too be highly appreciated
Thanks
I need to make a deletion of a row that was selected within an inner select.
The idea is :
Select (select min(col) from tableA where tableA.ID = tableB.ID
DELETE FROM tableA
WHERE tableA.ID = tableB.ID
) [colName]
From tableB
An alternate solution would too be highly appreciated
Thanks
Give us a data mockup of what you're trying to pull off here, as looking at your question it's not clear.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
COL exists in TableB? And is related to TableA.Col?
plus, sample data & expected result?