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!

select query with fields not present in same table

user9292962Jun 16 2016 — edited Jun 17 2016

Hi All,

I would like to know whether it's possible to write a select query with where clause having fields that might not be present in the same table? For example there is a table PO and it might not have ITEMSETID field but has ORGID field and there is some other table which might have ORGID and does not have ITEMSETID field . I tried to execute like

SELECT * FROM PO WHERE RECEIPTS ='NONE' and ( ITEMSETID ='XXXX' or ORGID ='YYYY')

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 15 2016
Added on Jun 16 2016
13 comments
3,735 views