MINUS function [message #373848] |
Tue, 15 May 2001 15:21 |
Bruce Weinstein
Messages: 4 Registered: May 2001
|
Junior Member |
|
|
Can someone explain how the MINUS function works.
For example,
select APPOINTMNT_PROCESS
,EFFDT
,EFF_STATUS
,DESCR
,DESCRSHORT
from TBL1@prod
minus
select APPOINTMNT_PROCESS
,EFFDT
,EFF_STATUS
,DESCR
,DESCRSHORT
from TBL2;
In this example, does ORACLE compare the columns from both tables and if each column in tbl1 is equal to each column in tbl2, it will not select the record. Therefore, it only selects the row from tbl1 if all its columns are not same as tbl2? Therefore, the conclusion is it will tell me what rows are in TBL1 that are not in TBL2?
Thanks in advance.
|
|
|
|