Viewing 15 posts - 31 through 45 (of 1,346 total)
You've got AchieveLevel in the Group By. That in turn impacts which records contribute to the SUM() at each AchieveLevel.
April 10, 2008 at 2:15 pm
Your formula is conditional, based on column AchieveLevel:
,'TeamSalesAmount' =
...
April 10, 2008 at 1:47 pm
A bookmark lookup is not necessarily a bad thing - it indicates a non-clustered index is being used, which may be preferable to a table or index scan.
In this case,...
April 8, 2008 at 9:01 pm
A screen capture by itself is not sufficient to provide feedback:
1) The plan when displayed in QA has context-sensitive windows that pop up over each step - these aren't captured...
April 8, 2008 at 1:42 pm
I believe it's confusion regarding the data column in the table, versus the column alias in the query:
SELECT Convert(Char(15),LastUpdate,106) as LastUpdate..
...
ORDER BY LastUpdate desc
The 2 "LastUpdate" references above are...
April 2, 2008 at 3:16 pm
Your code comments state this:
>>get the Client_PK_ID value from tbl_Clients_ClientBasicInformation based on value of ClientNumber
But you're not "getting" the Client_PK_ID. You're selecting the column, but not assigning it to anything.
If...
February 21, 2008 at 1:18 pm
>>Heh... I'm thinking that's not quite true, PW... see David Jackson's post. Only limit is the 8K barrier in SS2000.
Right, it is dynamic, but it doesn't avoid a cursor...
January 17, 2008 at 9:21 am
With SQL2K, the only way to avoid cursor (or 'hidden' cursor in a function) is to accept a non-dynamic query where the number of lines of text queried is capped.
Here...
January 15, 2008 at 12:55 pm
Why are you resorting to a RANKing function, period ?
Do you have cases where 2 records are tied based on SSN and Date ?
Typically this would be a join to...
January 11, 2008 at 7:32 am
>>If you are on 2000 you could use select into with column identity.
That is how I would do it on SQL2K, but if and only if, there is no...
January 10, 2008 at 10:33 am
>>Arithmetic overflow error converting numeric to data type numeric.
The data type is already numeric, so it's not a type conversion due to anything that IsNumerci() will help you with.
You've got...
January 10, 2008 at 9:31 am
For each GROUP of ID_1 and Version, you want to locate the MAX() Value and return that row ?
Correct ?
If so, why are you not requiring the row with...
January 10, 2008 at 9:06 am
>>if it was up to me I wouldn't even do this in the DB, I would do it in the app
And that will likely lead to an even worse situation...
January 9, 2008 at 12:28 pm
>>Another one which one is faster IF EXISTS or IF NOT EXISTS...
There is no correct answer. As always ... "it depends".
Both of these contructs execute a query, and whichever...
January 8, 2008 at 10:18 am
>>Which one to compare 1'st string or integer in a where clause for better performance
It doesn't make any difference. The optimizer makes a decision based on indexes, statistics etc.
Also,...
January 8, 2008 at 9:59 am
Viewing 15 posts - 31 through 45 (of 1,346 total)