Viewing 15 posts - 61 through 75 (of 127 total)
select
datediff("d", openDate, closedDate) - tbl1.daysToComplete as DayDifference
from tblSale
inner join tbl1 on tblSales.task = tbl1.Task
where task like '%New%'
and tblSale.qtr = 3
and tbl1.Year = 2010
and closedDate NOT in...
April 15, 2010 at 6:00 am
ok so i now have my date table with all of the date from 1/31/2005 to 12/31/2015, so now, how can I determine if a date between 4/1/2010 and 4/15/2010...
April 14, 2010 at 11:20 am
I think i just fixed it, i changed the order of my where clause and it appears to be working now.
March 30, 2010 at 12:25 pm
LOL,
No, I'm using 2005, I tried it in 08 to see if was an SQL version issue, but my 08 crashed. (good times)
March 15, 2010 at 8:00 am
I got an error on that was well referring to "N"
March 15, 2010 at 7:46 am
Thanks for the input, its greatly appreciated. However, I'm trying some of the suggested queries and it keeps kicking me out an error:
SELECT TOP (1)
...
March 15, 2010 at 7:35 am
nope no homework, no interview questions, its an actualy business requirement for this application that was once an access app and everything was done manually, now i'm automating it and...
March 12, 2010 at 5:04 am
yes, I can upload the file just fine, i want to add the upload date to the table which is failing
February 24, 2010 at 12:55 pm
I tried that and it errors and the data is never uploaded to the table
February 24, 2010 at 12:06 pm
i just need a final count, so if i run my query (as above) and I get 100 records and 48 records are below 0, I need to count them....
January 20, 2010 at 11:01 am
I love coding against a moving target. 🙂
Now, I just got asked to count all items (var) that is a negative number,
so if var is -5, -6, -20, etc,...
January 20, 2010 at 10:37 am
that's what i did actually and it worked.
thanks
January 20, 2010 at 10:34 am
not sure if this the best way but i did this.
(RequiredCompletionDays - DATEDIFF(dd, COALESCE(tbl1.Opendate,tbl?.YourOtherDateColumn) , tbl1.ClosedDate)) as variance
and it returned my correct number.
January 20, 2010 at 10:32 am
Viewing 15 posts - 61 through 75 (of 127 total)