Hi everyone,
I'm using SQL 7.0 and need to write a stored procedure that will delete all the information from specific fields in a table. For example, I tried
DELETE
profitability, Unprofitable, MOU%
FROM tblFinalOneLine
(This doesnt' work)
I also Tried
DELETE tblFinalOneLine FROM(SELECT
profitability, Unprofitable, MOU% FROM tblFinalOneLine) AS [60] WHERE
[60].profitability = tblFinalOneLine.profitability and
[60].Unprofitable = tblFinalOneLine.Unprofitable and
[60].MOU% = tblFinalOneLine.MOU%
(This also didn't work. This deletes all the information out of tblFinalOneLine and then selects the fields.)
Can someone tell me what I'm doing wrong?
Thanks for all your help
Cathy
I'm using SQL 7.0 and need to write a stored procedure that will delete all the information from specific fields in a table. For example, I tried
DELETE
profitability, Unprofitable, MOU%
FROM tblFinalOneLine
(This doesnt' work)
I also Tried
DELETE tblFinalOneLine FROM(SELECT
profitability, Unprofitable, MOU% FROM tblFinalOneLine) AS [60] WHERE
[60].profitability = tblFinalOneLine.profitability and
[60].Unprofitable = tblFinalOneLine.Unprofitable and
[60].MOU% = tblFinalOneLine.MOU%
(This also didn't work. This deletes all the information out of tblFinalOneLine and then selects the fields.)
Can someone tell me what I'm doing wrong?
Thanks for all your help
Cathy