SQL> conn scott/scott
Connected.
SQL> set timing on
SQL> SELECT * FROM ( SELECT DEPTNO FROM DEPT) D;
DEPTNO
----------
10
20
30
40
Elapsed: 00:00:00.03
SQL>
1 SELECT * FROM ( SELECT DEPTNO FROM DEPT) D
2 WHERE EXISTS ( SELECT NULL
3 FROM EMP E
4* WHERE E.DEPTNO = D.DEPTNO)
5 /
DEPTNO
----------
10
20
30
Elapsed: 00:00:00.00
SQL>
SQL>
1 SELECT * FROM ( SELECT DEPTNO FROM DEPT) D
2 WHERE NOT EXISTS ( SELECT NULL
3 FROM EMP E
4* WHERE E.DEPTNO = D.DEPTNO)
5 /
DEPTNO
----------
40
Elapsed: 00:00:00.03
SQL>
Halim, a Georgia Tech graduate Senior Database Engineer/Data Architect based in Atlanta, USA, is an Oracle OCP DBA and Developer, Certified Cloud Architect Professional, and OCI Autonomous Database Specialist. With extensive expertise in database design, configuration, tuning, capacity planning, RAC, DG, scripting, Python, APEX, and PL/SQL, he combines technical mastery with a passion for innovation. Notably, Halim secured 16th place worldwide in PL/SQL Challenge Cup Playoff on the year 2010.
Monday, October 12, 2009
Subscribe to:
Post Comments (Atom)
My Blog List
-
-
-
ASSM states3 weeks ago
-
UKOUG Discover 20241 month ago
-
-
-
-
-
-
-
-
Moving Sideways8 years ago
-
-
Upcoming Events...11 years ago
-
No comments:
Post a Comment