Help Center/ Data Warehouse Service/ Tool Guide/ DSC/ Teradata Syntax Migration/ Migrating Tables/ SET
Updated on 2025-04-10 GMT+08:00
SET
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 ; |
Parent topic: Migrating Tables
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.