Viewing 15 posts - 76 through 90 (of 104 total)
Do you think it may have something to do with this line or the one a couple of lines below it (or both)?
else ((ABS(SUM(isnull(hmss.CREDIT_MEMOS, 0)) + SUM(isnull(hmss.EVEN_EXCHANGE, 0))))/(ABS(SUM(isnull(hmss.CREDIT_MEMOS, 0)) +...
August 5, 2009 at 12:26 pm
GSquared (8/5/2009)
SUM(hmss.BEDDING_CLOSE)/SUM(hmss.BEDDING_OPP)
If you use NullIf on the Bedding_Opp sum, you should be able to get rid of the error. If...
August 5, 2009 at 12:24 pm
Lynn Pettis (7/20/2009)
donato1026 (7/20/2009)
SELECT
CASE
WHEN ITM.MNR_CD = '100' THEN '15' AND
WHEN ITM.MNR_CD = '105' THEN '10' AND
WHEN ITM.MNR_CD = '110' THEN '5' AND
WHEN...
July 20, 2009 at 12:36 pm
SELECT
CASE
WHEN ITM.MNR_CD = '100' THEN '15' AND
WHEN ITM.MNR_CD = '105' THEN '10' AND
WHEN ITM.MNR_CD = '110' THEN '5' AND
WHEN ITM.MNR_CD = '111'...
July 20, 2009 at 12:30 pm
Lynn Pettis (7/20/2009)
I think you should look at Lowell's first code block. That looks more like what you want.
Well, although it is much appreciated, neither of those blocks work....
July 20, 2009 at 12:28 pm
Lynn Pettis (7/20/2009)
What are you trying to accomplish with the CASE statement?
I'm trying to return a desired value as a column... In this case, as SPIFF_BONUS. So, whatever MNR_CD...
July 20, 2009 at 12:27 pm
donato1026 (7/20/2009)
July 20, 2009 at 12:22 pm
OK... could someone just please show me. I'm not very familiar with all of this.
What kills me is stuff like:
Msg 102, Level 15, State 1, Procedure AvgCubesByShift, Line 103
Incorrect...
April 7, 2009 at 3:12 pm
Sorry guys... At this point, I just want to be able to insert the results into a table.
If anyone could help me with that, I would greatly appreciate it!
Thank you...
April 7, 2009 at 3:00 pm
Chris Morris (4/7/2009)
DECLARE @Startdate DATETIME, @Enddate DATETIME
SELECT @Startdate = convert(datetime, '02-APR-09' + ' 03:00:00', 101),
@Enddate = convert(datetime, '02-APR-09' + ' 20:00:00',...
April 7, 2009 at 2:44 pm
Chris,
Could you help me with this?
I just want this to work now. Inserting the results into a table. Here is my code, however, I get an error:
set ANSI_NULLS...
April 7, 2009 at 2:35 pm
Chris Morris (4/7/2009)
DECLARE @Startdate DATETIME, @Enddate DATETIME
SELECT @Startdate = convert(datetime, '02-APR-09' + ' 03:00:00', 101),
@Enddate = convert(datetime, '02-APR-09' + ' 20:00:00',...
April 7, 2009 at 2:32 pm
Chris Morris (4/7/2009)
SELECT @Startdate = convert(datetime, '02-APR-09' +... April 7, 2009 at 2:04 pm
For the time being, I would love to be able to take the results from this query, and create a STORED PROCEDURE that INSERTS the results into a table:
SELECT itl.user_id,...
April 7, 2009 at 2:02 pm
Actually, for right now, I am happy with just being able to INSERT the results into a table for now.
Here is my code that I have right now, but it's...
April 7, 2009 at 2:00 pm
Viewing 15 posts - 76 through 90 (of 104 total)