I want to understand the difference in the usage of a TPT script vs BTEQ script.
Say I am writing a complex SQL with joins on 15 tables, (each table approximately having 1 million rows) with few ordered analytical functions. I want to load the data produced by this SQL to another table in the same database/ same server, which of the following is better considering the performance and also best practice.
1. Create a BTEQ script, add this complex SQL with a INSERT INTO TABLE and run that bteq from command line using BTEQ command
2. Create a TPT script, use a stream or export operator to retreive the data and then use an update operator and load it to a table.
Tags:
Forums: