Hello, I could use a little help with changing the syntax of this query pull to the previous day.
Right now, it shows the current production numbers and I need it to display the previous day's production number of a particular line. (In this case 3)
Thanks for the help!
SELECT (AGG2_DAY_LINE_V.REPORT_DATE), AGG2_DAY_LINE_V.LINE, AGG2_DAY_LINE_V.PEL_LTONS FROM TOLIVE.AGG2_DAY_LINE_V AGG2_DAY_LINE_V WHERE (AGG2_DAY_LINE_V.REPORT_DATE >={ts '2012-01-01 00:00:00'}) AND (AGG2_DAY_LINE_V.LINE=3) ORDER BY AGG2_DAY_LINE_V.REPORT_DATE