> On 9 June 2014 00:24, Joe Yoder <[email protected]> wrote: > > > Scenario: > > > > - Cursor with 2 fields TimeStamp T, and Value N(4.0) - 1 record per > > second > > - Output needed - BegStamp as the beginning of a time period X seconds > > long and Avg as the average of the Value field for X seconds > > > > With X = 3600 the results should give the average value for each hour. > > > > I'm stuck on what to use for a group by expression and suspect that the > > best way may be to hard code a pair of loops that increments through the > > cursor one time period at a time. > > > > Does anyone want to show me a better way? > >---------------------- >
Make a DateTime dimension table that identifies any aspect of a date, time to the year, month, quarter, week in the company business cycle. -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmy+wfavtg0pol+u1-xhcp4aypv_atfy7qilkmjynwe+...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

