Viewing 15 posts - 496 through 510 (of 604 total)
I didn't mean to upset anyone.
I was just trying to understand why it didn't work, now I do understand.
I really appreciate you guys taking the time to help.
Good karma to...
October 14, 2009 at 7:23 am
is this wrong?
original way:
WHERE
isnull(datediff(dd,ld.delq_dt,getdate()),0) < 30
this:
WHERE
isnull(datediff(dd,ld.delq_dt,'2009-09-30'),0) < 30
October 13, 2009 at 2:02 pm
I'm not getting the same results
could it have something to do with not using the 'isnull' ?
October 13, 2009 at 1:21 pm
thanks so much for helping me out...
I need the month of september
October 13, 2009 at 12:31 pm
So...if I want to only see last months (september) then I would change it to
WHERE ld.delq_dt < dateadd(mm, datediff(mm, 0, '2009-09-30'), 0)
or
WHERE ld.delq_dt < dateadd(mm, datediff(mm, 0, '2009-30-09'), 0)
October 13, 2009 at 12:10 pm
sorry lutz missed your edit
trying now..
October 13, 2009 at 12:03 pm
lutz
I get an
An expression of non-boolean type specified in a context where a condition is expected, near ';'.
October 13, 2009 at 11:59 am
thanks ken..but I don't think that's right...I get zero rows back (I know there are records)
October 13, 2009 at 11:22 am
shouldn't I be able to simply add 'GETDATE()' to the default value or binding of the table, so it inserts the current date when a record gets inserted?
October 2, 2009 at 11:38 am
Lynn
if I add that in the default value or binding..it doesn't auto fill it for me when I insert a record into that table
October 2, 2009 at 11:19 am
no I don't know how to do that can you explain?
October 1, 2009 at 9:21 am
Thanks for answering..
I think the issue is I'm trying to insert 'empty' into a datetime column...
Should I have the vender change the empty's to 'NULL'?
September 30, 2009 at 2:36 pm
Viewing 15 posts - 496 through 510 (of 604 total)