SET is a unique feature in Teradata. It does not allow duplicate records. It is addressed using the MINUS set operator. Migration tool supports MULTISET and SET tables. SET table can be used with VOLATILE.
Input: SET TABLE
1 2 3 4 5 | CREATE SET VOLATILE TABLE tab1 ... ; INSERT INTO tab1 SELECT expr1, expr2, ... FROM tab1, ... WHERE .... ; |
Output
1 2 3 4 5 6 7 | CREATE LOCAL TEMPORARY TABLE tab1 ... ; INSERT INTO tab1 SELECT expr1, expr2, ... FROM tab1, ... WHERE .... MINUS SELECT * FROM tab1 ; |