Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding Decimal Values with Level

3134376Feb 7 2018 — edited Feb 7 2018

Hi All,

I want to create a table with two column, one is coming good with level but another one is also coming increasingly but I want second column output as

1.1

1.2

1.3

1.4

.

.

so on .

SELECT LEVEL lvl, (LEVEL + .1)--(LAG(LEVEL) OVER (ORDER BY LEVEL)) + 1   interest

FROM   dual

CONNECT BY level <= 100;

This post has been answered by Frank Kulash on Feb 7 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2018
Added on Feb 7 2018
10 comments
1,068 views