March 14, 2013 at 2:43 pm
Hi Friends,
I'm using DateDiff function -
my requirement is -
1) "SmartLaborII Job Posting End Date"" is NOT < ""SmartLaborII Work Order End Date"
and
my code is -
--------
not(datediff(day,[WorkForce_JobPosting].[Job Posting End Date_JP]
,[WorkForce_WorkOrder].[Work Order End Date_WO])
> 0)
--------
2) "SmartLaborII Work Order End Date"" is NOT greater than ""SmartLaborII Previous Work Order End Date"
my code is -
///
datediff(day,[WorkForce_WorkOrder].[Work Order End Date_WO]
,[WorkForce_WorkOrder].[Previous Work Order End Date_WO] )
>= 0
//
Need help from experts to verify if my code for the 2 requirements is correct ?
Kind Regards
Dhananjay
March 14, 2013 at 2:53 pm
duplicate post. Please direct all replies here. http://www.sqlservercentral.com/Forums/Topic1431270-392-1.aspx
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy