SQL Language (MOSC)

MOSC Banner

densifying time series data

edited Sep 27, 2016 11:51AM in SQL Language (MOSC) 2 comments

In https://livesql.oracle.com/apex/livesql/s/dw1gfr8vtb0hefd80aflipe9c I put together some time series data a query to densify the data.

In a table ta_time_series I have two columns: A_ID  NUMBER and A_STATUS  CHAR(1). Over the sequence of ascending A_IDs (could also be filled via a Sequence) a status A_STATUS can change or remain the same as it was for the previous A_ID. This is my sample data:

A_IDA_STATUS

1

A
2A
3B
4C
5C
6B
7B
8A
9A

The goal is to densify this times series data into this form:

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center