![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
I need to create a view that "fills up" the entries of a table. Example: Let's consider a table t_rates with bank rates for borrowing money for a certain duration: Duration_Months; Rate 3; 4.0% 6; 4.5% 12; 4.8% The problem is that I need a value for all durations, not only the ones I have. So I would like to create a view that calculates (e.g. interpolates, extrapolates) the rates. Result: Duration_Months; Rate 1; 4.0% 2; 4.0% 3; 4.0% 4; 4.2% 5; 4.4% 6; 4.5% ... Whatever the rates will be, that is not important for me right now. What I need is the sequence of all durations. |
#22
| |||
| |||
|
#23
| |||
| |||
|
#24
| |||
| |||
|
#25
| |||
| |||
|
#26
| |||
| |||
|
|
Hello Peter, Late answer better than no answer. Thanks. I definitely prefer your "select level" to the rownum solution. And thanks for the full sql example, I implemented it into my application and it works very nicely. It is always nice to solve such things with SQL only. I also used pipelined functions at another place, also a very smooth solution and probably more easy to read. Best, Hans |
#27
| |||
| |||
|
|
Hello Peter, Late answer better than no answer. Thanks. I definitely prefer your "select level" to the rownum solution. And thanks for the full sql example, I implemented it into my application and it works very nicely. It is always nice to solve such things with SQL only. I also used pipelined functions at another place, also a very smooth solution and probably more easy to read. Best, Hans |
#28
| |||
| |||
|
|
Hello Peter, Late answer better than no answer. Thanks. I definitely prefer your "select level" to the rownum solution. And thanks for the full sql example, I implemented it into my application and it works very nicely. It is always nice to solve such things with SQL only. I also used pipelined functions at another place, also a very smooth solution and probably more easy to read. Best, Hans |
#29
| |||
| |||
|
|
Hello Peter, Late answer better than no answer. Thanks. I definitely prefer your "select level" to the rownum solution. And thanks for the full sql example, I implemented it into my application and it works very nicely. It is always nice to solve such things with SQL only. I also used pipelined functions at another place, also a very smooth solution and probably more easy to read. Best, Hans |
![]() |
| Thread Tools | |
| Display Modes | |
| |