firefly2k8
Registered User.
- Local time
- Today, 01:23
- Joined
- Nov 18, 2010
- Messages
- 48
I want to delete records from one table [Project Table] where there are blanks and add these records to a different existing table [Excluded Trades].
[Excluded Trades] has the same structure as [Project Table].
This query succesfully selects the records to be extracted:
This query successfully deletes the records from [Project Table]
However the [Excluded Trades] table is not updated? The TABLE .. UNION.. query just acts like a SELECT.
Help much appreciated.
[Excluded Trades] has the same structure as [Project Table].
This query succesfully selects the records to be extracted:
Code:
Table [Excluded Trades] UNION ALL SELECT * FROM [SE2 Project Table] WHERE [Type Forward/Spot] = 'Forward' AND ([Forward Outright High] is null OR [Forward Outright Low] is null) AND [Project ID] = 61;
This query successfully deletes the records from [Project Table]
Code:
DELETE * FROM [SE2 Project Table] WHERE [Type Forward/Spot] = 'Forward' AND ([Forward Outright High] is null OR [Forward Outright Low] is null) AND [Project ID] = 61;
However the [Excluded Trades] table is not updated? The TABLE .. UNION.. query just acts like a SELECT.
Help much appreciated.