Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Syntax help, change to previous day

$
0
0

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
 

 

line 3 prod numbers syntax.PNG


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>