Viewing 5 posts - 1 through 5 (of 5 total)
One method to be able to vary any item in a select statement is to use a string method to create the statement and then execute the string .. e.g....
December 1, 2009 at 1:55 pm
Obviously a host of ways, but the simplest method, and easiest to debug, would be to create 6 select statements, with WHERE clauses - one for each type, and Union...
December 1, 2009 at 1:49 pm
Good explanation, I can understand now why the issue cannot be resolved up front.
Thanks,
November 30, 2009 at 8:21 am
I do wonder how you came to use the UNION ALL statement when looking at inserts in this case. What drove that thought of enquiry, as such statements are not...
November 30, 2009 at 7:16 am
I have had a similar problem in the past, but rather than looking to clean up after the fact, I test for duplicates beforehand and eliminate the insert at that...
November 30, 2009 at 6:51 am
Viewing 5 posts - 1 through 5 (of 5 total)