Hi,
My DB is MS SQL Server. I wrote a SQL statement to remove rows from a table as following.
DELETE FROM #TableA
FROM #TableA AS t1
LEFT JOIN #TableA AS t2 ON (t1.Index - 1) = t2.Index
WHERE t2.Index IS NULL
========================================
When I tried to execute it, I got the following error message.
Error Message: The table '#TableA' is ambiguous.
Thanks for your help.