USING SELECT 'X' in query/subqueries.
USING SELECT 'X' in query/sub-queries. -------------------------------------------------------- -- DDL for Table TAB1 -------------------------------------------------------- CREATE TABLE "ATEST"."TAB1" ( "ID" NUMBER, "NAME" VARCHAR2(20 BYTE) ) ; Insert into ATEST.TAB1 (ID,NAME) values (1,'AAA'); Insert into ATEST.TAB1 (ID,NAME) values (2,'BBB'); Insert into ATEST.TAB1 (ID,NAME) values (3,'EEE'); Insert into ATEST.TAB1 (ID,NAME) values (4,'FFF'); -------------------------------------------------------- -- DDL for Table TAB2 -------------------------------------------------------- CREATE TABLE "ATEST"."TAB2" ( "ID" NUMBER, "NAME" VARCHAR2(20 BYTE) ) ; Insert into ATEST.TAB2 (ID,NAME) values (1,'CCC'); Insert into ATEST.TAB2 (ID,NAME) values (2,'DDD'); Get records that exits in TAB1 and not in TAB2 using select 'X...