Creating a View Based on Column Values.
Hello All,
This is Regards of creating a View of Additonal column with following requirement.
It would be great if I get some information on this
Example
I have a Table with the column as Specified and Sample value as below.
TABLENAME
RowNumber UtcTimeStamp TotalRequest
1 2015-03-04 12:20:00 10441856
2 2015-03-04 12:30:00 10447205
3 2015-03-04 12:40:00 10454634
4 2015-03-04 12:50:00 10461790
5 2015-03-04 13:00:00 10469014
6 2015-03-04 13:10:00 10476494
I would need to create a View as following or Partition
Like below
1) Like always the First Row "ColumnResult" Column is 0
"ColumnResult" of Row 2 is
And from Row 2 Onwards, "ColumnResult" is =
TotalRequest(Value in Row 2 ) - TotalRequest(Value in Row 1 )
"ColumnResult" of Row 3 is
TotalRequest(Value in Row 3 ) - TotalRequest(Value in Row 2 )
and So on..
RowNumber UtcTimeStamp TotalRequest ColumnResult
1 2015-03-04 12:20:00 10441856 0
2 2015-03-04 12:30:00 10447205 5349
3 2015-03-04 12:40:00 10454634 7429
4 2015-03-04 12:50:00 10461790 7156
5 2015-03-04 13:00:00 10469014 ...
6 2015-03-04 13:10:00 10476494 so on...
Thanks and Regards
Durai Velan C.
Subject
Written By
Posted
Creating a View Based on Column Values.
March 06, 2015 05:52AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.