I am currently producing a view:

CommonAB A1 A2 B1 B2

... from two temp tables:

CommonAB A1 A2
CommonAB B1 B2

... generated from base data.

I'd like to produce a view that captures ALL data, looking like:

Common AB A1 A2 -0- -0-
Common AB A1 A2 B1 B2
Common AB -0- -0- B1 B2

Q: To do this, must I schematically redesign my temp tables as:

Common AB A1 A2 B1 B2
Common AB A1 A2 B1 B2

... and fill rows of the opposite columns with nulls:

CommonAB A1 A2 -0- -0-
CommonAB -0- -0- B1 B2

... UNION these tables:

CommonAB A1 A2 -0- -0-
UNION ...
CommonAB -0- -0- B1 B2

... and then UNION this with the original view?

And to populate the nulled columns of the temp tables, do I just use '-0-'
in the SELECT statements?

Thank you for your review and perspective,

Bruce
SafeSectors, Inc.

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE: 
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body, 
place any 
text to search for.
================================================


Reply via email to