Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Problem with multiple clien numbers from a view
Hi Gurus,
I have a problem with a view
Created a view with a UNION ALL stmt
PERNR, OBJPS, ENDDA, BEGDA, AEDTM, UNAME,
PERNR, OBJPS, ENDDA, BEGDA, AEDTM, UNAME,
The second table contains legacy data (LEG_STG_SAP_PA9211_TB). The first table now contains multiple client data (ie the client_num can be 201,202,250 like that.
Now if the users qery the view they will only get that clients data.
eg selet * from vw_benifits where client_num=250 results only client 250 data. But I want to add the legacy data also with that.
I don't want to propose
selet * from vw_benifits where client_num in (250,NULL) since the users
will be confused.
Is there any other way to do this . my requirement is like If they query
select * from vw_benifits where client_num=250, the data should include all the records satisfying client=250 + the records from the legacy data. The view need to be created like that. Appreciate your help
Deepak Received on Tue Sep 05 2006 - 14:13:03 CDT
![]() |
![]() |