Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > Subtracting a subset of a table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-08, 10:18
newsome newsome is offline
Registered User
 
Join Date: Oct 2008
Posts: 1
Subtracting a subset of a table

Hi. Using Hyperion Client for Oracle I am having trouble with the following issue:

I have a master table of data. In a separate table I have a subset of the master data. I would like to create a new table that contains the entries on the master that do NOT appear on the subset table. I want to subtract the subset from the master and be left with a new table.

in terms of a join it might be something like:

Table 1 contains the master
Table 2 contains a subset of the master
JOIN: Retrieve all rows where joined columns do NOT match

Anyone have any thoughts on this?

Many thanks.
Reply With Quote
  #2 (permalink)  
Old 10-13-08, 12:27
LKBrwn_DBA LKBrwn_DBA is offline
Registered User
 
Join Date: Jun 2003
Location: West Palm Beach, FL
Posts: 1,951
Talking Minus

Check out the MINUS set operator.
.
__________________
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On