Viewing 15 posts - 1 through 15 (of 27 total)
anthony.green (5/10/2012)
Usually I just...
May 10, 2012 at 8:37 am
anthony.green (5/10/2012)
Usually I just...
May 10, 2012 at 8:34 am
Sean Lange (5/1/2012)
Jeremy... (5/1/2012)
Thanks. you've been a huge help. Right before you replied, I actually went back through and and put the entire case statements in the where...
May 1, 2012 at 12:17 pm
Sean Lange (5/1/2012)
Here is a really basic example.
select case when 1 = 2 then...
May 1, 2012 at 10:35 am
capn.hector (5/1/2012)
May 1, 2012 at 9:42 am
SQLKnowItAll (4/16/2012)
Jeremy... (4/16/2012)
April 16, 2012 at 11:42 am
Thanks for the help so far. I am essentially trying to show the expiration date for an item, however, when the value is null, this means the license has...
April 16, 2012 at 10:44 am
Thank you. I was able to figure it out late last night. The key was using runningvalue() in BI Studio to plot the total orders for the month and...
March 13, 2012 at 7:19 am
Figured it out. Had to use a derived table.
SELECT AVG(turntime) FROM
(SELECT DISTINCT Fm.filenumber, dbo.fn_Business_Days_Between_Dates(dbo.GetLocalDateTimeFunc((SELECT MAX(dbo.GetLocalDateTimeFunc(FA1.ReceivedDate))
FROM FileActions FA1
WHERE FA1.ActionDefID IN (61,315, 393, 400) --disburse
AND FA1.ReceivedDate IS NOT NULL
AND...
February 26, 2012 at 11:22 am
Jason Selburg (2/24/2012)
One possible solution ...
SELECT
AVG(dbo.fn_Business_Days_Between_Dates(dbo.GetLocalDateTimeFunc(FM.OpenedDate),dbo.GetLocalDateTimeFunc(FA.receiveddate))*1.0)
🙂
Wow. That worked. I now have 3.500000. Is the built in function just not displaying any decimals,...
February 24, 2012 at 9:12 am
Lynn Pettis (2/22/2012)
Wildcat (2/22/2012)
Hakuna Matata (2/22/2012)
Try this :
WHERE CONVERT(DATE,FM.Openeddate)=CONVERT(DATE,GETDATE())
I don't recommend to use this
I agree with wildcat as it would cause a table scan. The convert function has to...
February 22, 2012 at 2:40 pm
Thanks Lynn. Is there a good place to find information on this topic? I've seen the below done 500 different ways and usually have trouble deciphering what some...
February 22, 2012 at 11:42 am
Viewing 15 posts - 1 through 15 (of 27 total)