Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problem with multiple clien numbers from a view
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
deepak...@gmail.com  
View profile  
 More options Sep 5 2006, 3:13 pm
Newsgroups: comp.databases.oracle.server
From: deepak...@gmail.com
Date: 5 Sep 2006 12:13:03 -0700
Local: Tues, Sep 5 2006 3:13 pm
Subject: 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
=====================================
Create view vw_benifits
as
SELECT
Client_num, -- can have multiple values like 200,201,250
PERNR,
OBJPS,
ENDDA,
BEGDA,
AEDTM,
UNAME,
COB_MNTH_AMT
FROM
STG_SAP_PA9211_TB
UNION ALL
SELECT
null, -- no client number for legacy data
PERNR,
OBJPS,
ENDDA,
BEGDA,
AEDTM,
UNAME,
COB_MNTH_AMT
from
LEG_STG_SAP_PA9211_TB;
==============================

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DA Morgan  
View profile  
 More options Sep 5 2006, 3:52 pm
Newsgroups: comp.databases.oracle.server
From: DA Morgan <damor...@psoug.org>
Date: Tue, 05 Sep 2006 12:52:45 -0700
Local: Tues, Sep 5 2006 3:52 pm
Subject: Re: Problem with multiple clien numbers from a view

If the legacy data does not contain a client number then how do you plan
to determine which legacy data corresponds with which client data?

And unless I misunderstand your example, quite likely, why were client
numbers stripped from the legacy data?
--
Daniel Morgan
University of Washington
Puget Sound Oracle Users Group


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »