Quantcast
Channel: Questions in topic: "calculated column"
Viewing all articles
Browse latest Browse all 11

Calculated Columns

$
0
0
How would I add a column that would supply the number of days for the following? I originally had three separate stored procedures that returned the rows. I need to use just one for my chart. 1. DATEDIFF(DAY, GetDate(), DATEADD(day, (P.Planning_LeadTime * -1), PLO.Want_Date)) BETWEEN -10 AND -20 2. DATEDIFF(DAY, GetDate(), DATEADD(day, (P.Planning_LeadTime * -1), PLO.Want_Date)) > -20 3. DATEDIFF(DAY, GetDate(), DATEADD(day, (P.Planning_LeadTime * -1), PLO.Want_Date)) < -20

Viewing all articles
Browse latest Browse all 11

Trending Articles