Viewing 15 posts - 346 through 360 (of 428 total)
Hugo Kornelis (8/16/2012)
sestell1 (8/16/2012)
A good question. This is a drawback to using table variables for temporary storage that you need to remember to work around.
Actually, this is not a...
August 16, 2012 at 7:20 am
A good question. This is a drawback to using table variables for temporary storage that you need to remember to work around.
August 16, 2012 at 6:49 am
mtassin (8/13/2012)
You know you're starting to get paranoid when you're always looking for the catch.Glad that I couldn't find one and got it correct 🙂
Haha yea, with all of the...
August 13, 2012 at 7:22 am
I'm not sure from your question if you want the summary value from the month 12 record of the previous year, or if you are trying to sum up multiple...
August 10, 2012 at 2:59 pm
I didn't know they'd increased the maximum size for SQL Server Express 2008 R2, so thanks for the question!
August 10, 2012 at 9:24 am
Why is a regular query not sufficient?
Is is unknown whether any of the given parameters will contain a value?
August 9, 2012 at 6:38 am
Robin Sasson (8/8/2012)
Nice back to basics question although I'm a bit more of a COALESCE man myself.
I remember a long time ago (SQL Server 2005?) having performance issues using COALESCE...
August 8, 2012 at 7:18 am
I thought for sure this was some sort of trick question... very happy to get it right. 🙂
August 8, 2012 at 7:10 am
mhg1063 (8/7/2012)
ID | LNAME | FNAME |State Cd
----------|----------|--------- |
0000001 | Bloggs | Joe ...
August 7, 2012 at 7:44 am
You can try using a case statement in your join for each potential column.
SELECT
A.ColumnA1,
B.ColumnB2
FROM
TableA A
Join
TableB B
ON 1 = 1
AND A.ColumnA1 = CASE @ColumnName WHEN 'ColumnB1' THEN...
August 7, 2012 at 7:41 am
Sean Lange (8/7/2012)
August 7, 2012 at 7:32 am
Viewing 15 posts - 346 through 360 (of 428 total)