SQL>>
System> SELECT /* Nulls - No index */
COUNT (*)
FROM google_customers
WHERE (cust_first_name, cust_last_name) NOT IN (
SELECT cust_first_name,
cust_last_name
FROM microsoft_customers);
COUNT(*)
----------
1087
Elapsed: 00:00:00.90
Execution Plan
----------------------------------------------------------
Plan hash value: 1119169911
--------------------------------------------------------------------------------------------
Predicate Information (identified by operation> ---------------------------------------------------
5 - access(INTERNAL_FUNCTION("CUST_FIRST_NAME")=INTERNAL_FUNCTION("CUST_FIRST_NAM
E") AND INTERNAL_FUNCTION("CUST_LAST_NAME")=INTERNAL_FUNCTION("CUST_LAST_NAME"))
filter(INTERNAL_FUNCTION("CUST_LAST_NAME")=INTERNAL_FUNCTION("CUST_LAST_NAME"
) AND INTERNAL_FUNCTION("CUST_FIRST_NAME")=INTERNAL_FUNCTION("CUST_FIRST_NAME"))
Statistics
----------------------------------------------------------
1 recursive calls
0 db block gets
120 consistent gets
118 physical reads
0 redo> 527 bytes sent via SQL*Net to client
523 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
3 sorts (memory)
0 sorts (disk)
1 rows processed
SELECT /* Nulls - No index */
COUNT (*)
FROM google_customers gc
WHERE NOT EXISTS (
SELECT 0
FROM microsoft_customers mc
WHERE mc.cust_first_name = gc.cust_first_name
8 AND mc.cust_last_name = gc.cust_last_name);
COUNT(*)
----------
1087
Elapsed: 00:00:00.89
Execution Plan
----------------------------------------------------------
Plan hash value: 2488544940
-------------------------------------------------------------------------------------------
Predicate Information (identified by operation> ---------------------------------------------------
2 - access("MC"."CUST_FIRST_NAME"="GC"."CUST_FIRST_NAME" AND
"MC"."CUST_LAST_NAME"="GC"."CUST_LAST_NAME")
Statistics
----------------------------------------------------------
1 recursive calls
0 db block gets
120 consistent gets
118 physical reads
0 redo> 527 bytes sent via SQL*Net to client
523 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed