Viewing 15 posts - 31 through 45 (of 74 total)
GilaMonster (9/22/2012)
September 22, 2012 at 11:19 am
Nils Gustav Stråbø (9/22/2012)
September 22, 2012 at 10:27 am
Nils Gustav Stråbø (9/22/2012)
5.Avoid the use of negative logic wherever possible (NOT EXISTS, NOT IN ...)
Why? What would you use instead when you need this form negative logic? When an...
September 22, 2012 at 10:06 am
Jeff Moden (9/21/2012)
The following isn't a bad suggestion but, unless you ccome up with a reassonable standard snippet of code for use in the CATCH block, you're going to have...
September 22, 2012 at 9:56 am
Thanks for the comments
rVadim (9/21/2012)
Recurs1on (9/21/2012)
Query Design ...8.Do not use scalar valued functions SELECT statements
I don't think I understand this. Can you expand?
This should probably be restated. What we're after...
September 22, 2012 at 9:27 am
I figured it out. Sorry everyone, but this one has had nothing to do with SQL server, and everything to do with the person behind the keyboard. I accidentally reversed...
June 7, 2012 at 10:31 am
Which means there's some hidden difference between the two. A connection parameters difference (one connection with SET ANSI_NULLS ON and another with them OFF, for example);
I'm running them...
June 7, 2012 at 10:01 am
OK, but remember that if I copy the query into SSMS and run it directly, it retuns all the expected results.
June 7, 2012 at 9:46 am
Yea, I know. I'm trying to come up with something generic that I can post that will reproduce the issue, but in the meantime, I wanted to see if I...
June 7, 2012 at 9:38 am
It's in one of the ON clauses that I replaced with "...". I don't think the exact statement in the ON clause is very important though, because it's a LEFT...
June 7, 2012 at 9:34 am
Yes, they are both using the same values. I have the parameters declared and I call both of them from within the same SSMS window, so i know all the...
June 7, 2012 at 9:19 am
I have no idea why your query doesn't work, but if you re-write it as follows, it seems to work fine.
WITH SALES
AS (
SELECT
...
March 6, 2012 at 1:49 pm
You could also do somthing simliar with a tally table and a GROUP BY. I'm not sure which one will perform better, or if you even need it to.
March 2, 2012 at 2:13 pm
I'm not saying that this will perform great, but something like this should work. You will have to expand the query to include the greatest number of columns that you...
March 2, 2012 at 1:45 pm
Viewing 15 posts - 31 through 45 (of 74 total)