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!

Create virtual table.

becksSep 17 2010 — edited Sep 20 2010
Hi all,

I have a table with SUBTYPE, DATAID, ORIGNALDATAID, DATE column.

select dataid, orignaldataid from table where subtype=1 and Date=01-Aug-2010.

I have the above query statment. I need the dataid for further processing, but before the processing is done. I need to check if the orignaldataid=0, if yes, dataid remains else dataid=orginaldataid. Before the list is pass to another sql. But i intend to use nested sql for futher processing, hence i need to database to crunch the data instead of using java to change the data.

I was thinking of creaating another virtaual table in DB where it will automatically do this for me instead of having dataid and orginaldatid column, it will jus have dataid column. Then i can just query this virtual table.
Select dataid from virtualTable where subtype=1 and Date=01-Aug-2010. Is it possible?
This post has been answered by Madhu BR on Sep 17 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2010
Added on Sep 17 2010
7 comments
8,527 views