Teradata – Merging two change history tables

sql2

Have you encountered a poorly designed physical data model where object columns are distributed randomly across tables, and you wish to unify them in their rightful place? Merging non-historical tables is simple, but the process becomes more complex when historization is applied to at least one of the tables. Change history tables are typically complex. …

Read more

Teradata Set Operators: Understanding UNION vs. UNION ALL for Peak Performance Optimization

sql3

In this article, we will delve into the world of Teradata set operators, exploring their functionality, applications for attaining peak performance, and the optimization techniques employed by Teradata. Teradata UNION vs. UNION ALL What sets UNION apart from UNION ALL in Teradata? The Teradata UNION operator combines the results of two or more queries, removing …

Read more

Optimize Query Runtimes and Save Costs with Cloud Data Warehousing Platforms: Snowflake, BigQuery, and Redshift

sql1

Add Snowflake, BigQuery, and Redshift to your Knowledge As a passionate Teradata expert, I have fine-tuned thousands of SQL queries throughout my professional journey. It was an enjoyable and fulfilling experience to witness how, with expertise, query runtimes could be optimized from hours to mere minutes or seconds. While end-users were pleased with the results, …

Read more

Optimizing Teradata Performance through Statistics and Primary Index Selection

sql2

1. Statistics In Teradata, comprehending and overseeing statistics is essential for optimizing database performance. Statistics provide the optimizer with precise data about stored information, allowing for well-informed decisions when handling queries. This article will explore the significance of statistics in Teradata, their effect on query performance, and recommended methods for upkeep. The Role of Statistics …

Read more

Teradata MERGE INTO vs. UPDATE: Performance Comparison and Limitations

sql1

Teradata MERGE INTO vs. UPDATE This article compares the UPDATE statement to the MERGE INTO statement, analyzing their respective performance differences and limitations. The Teradata MERGE INTO statement positively impacts performance by reducing I/O operations due to certain properties related to its performance. MERGE INTO offers an advantage in lower IOs as Teradata processes each …

Read more

Teradata Antiselect: The Reverse Logic of Selecting Columns for Specific Purposes

sql1

Teradata has incorporated several analytical functions from Teradata Aster in its recent releases. Although many of these functions are tailored for web click analysis, Teradata Antiselect has proven valuable for specific applications. What is the Teradata Antiselect function? Teradata’s Antiselect function allows for the reversal of column selection logic. Rather than specifying columns to select, …

Read more

The Teradata Recursive Query for Performance Tuning

sql1

Problem-solving without a Teradata Recursive Query To depict a corporate hierarchy in our instance, we can employ a non-recursive approach, illustrated by the query presented below: The above query has several harmful properties: Problem-solving with a Teradata Recursive Query The above recursive query has several benefits: The only modification required to enlarge the Company_Hierarchy column …

Read more

Teradata SQL Tuning: How Query Rewriting Can Reduce Runtime from 40 Minutes to Seconds

sql2

It’s time to share a new Teradata SQL tuning case study that showcases the impressive impact of query rewriting on performance. We are studying the query below that originally took 40 minutes to run. As a SQL tuning specialist, I always prioritize adding missing statistics and refreshing stale ones. I analyzed the SQL statement that …

Read more

High-Performance Calculations with Teradata Ordered Analytical Functions

sql4

Teradata employs two distinct approaches in Ordered Analytic Function for preparing data geography necessary for processing. This article elucidates both approaches and their respective merits and demerits. Teradata Ordered Analytical Functions Teradata Analytic Functions are versatile tools that allow for a range of applications. The capability to retrieve previous and subsequent rows is critical in …

Read more

DWHPro

Expert network for enterprise data platforms. Senior consultants, project teams built for your challenge — across Teradata, Snowflake, Databricks, and more.

📍Vienna, Austria & Miami, Florida

Quick Links
Services Team Teradata Book Blog Contact Us
Connect
LinkedIn → [email protected]
Newsletter

Join 4,000+ data professionals.
Weekly insights on Teradata, Snowflake & data architecture.