Viewing 15 posts - 1 through 15 (of 19 total)
so for.....
drs.void_date >= DATEADD(day, DATEDIFF(day, 0, CURRENT_TIMESTAMP), -3)
AND drs.void_date < DATEADD(day, DATEDIFF(day, 0, CURRENT_TIMESTAMP), 0)
will return the records with void _date between 3...
June 13, 2017 at 2:14 pm
can I have someone explain how on my original script this:
WHEN CAST(drs.void_date AS DATE) = CAST(dateadd(day, -1, getdate()) AS DATE)
differs from this
June 13, 2017 at 11:55 am
so I think its just the two parts which end AS real_date, so from below
WHEN CAST(void_date AS DATE) = CAST(dateadd(day, -1, getdate()) AS DATE)
THEN (substring(cast(cast(drs.void_date...
June 13, 2017 at 10:00 am
could you tell me where in my script this would need to be done?
June 13, 2017 at 9:42 am
I believe the customer we're sending this to the orders only have 1 pickup and 1 stop
March 23, 2017 at 12:00 pm
can you explain why in:
sPU.actual_departure >= dateadd(mm, datediff(mm, 0, getdate()), 0)
you would write as
sPU.actual_departure >= dateadd(mm, datediff(mm, 0, getdate()), -1) to get the...
March 23, 2017 at 11:26 am
If I'm understanding correctly GetDate() is for the current date and the above would pull anything 1 month before the current date
March 23, 2017 at 11:12 am
so I believe this should work
AND sPU.actual_departure > DateAdd(M, -1, GetDate());
March 23, 2017 at 10:59 am
so now I'm needing based off our scheduler to send the report out based of the previous month's actual departure
so for February it would be what is below,...
March 23, 2017 at 10:39 am
how does it know that sPU and sSO are off of the stop table?
March 23, 2017 at 6:47 am
So that appeared to work!! Thank you so much, but I'm not understanding where sPU and sSO and defined?
March 23, 2017 at 6:33 am
but from what is listed above how would I display my data on one row so it would match my example?
Basically for every two stops there is one...
March 22, 2017 at 2:39 pm
with what I'm doing with our software, we're a transportation brokerage and with their 'Document Designer' aka form builder using sql, I cannot use CREATE TABLE
March 22, 2017 at 2:18 pm
sorry about that I will do that in the future.....what was provided was just a small sample of data, I think what you wrote as below works, I just need...
March 22, 2017 at 1:40 pm
Here is an example on order 0940136
March 22, 2017 at 12:55 pm
Viewing 15 posts - 1 through 15 (of 19 total)