DWHPro Insights

SQL Tuning

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

Illustration of a glossy orange database cylinder with data fragments across its surface

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

Optimizing Teradata Performance through Statistics and Primary Index Selection Widely read

Illustration of a glossy orange database cylinder with data fragments across its surface

1. Statistics In Teradata, understanding and managing 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 Popular

Illustration of a glossy orange database cylinder with data fragments across its surface

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 through the following properties. MERGE INTO offers an advantage in lower IOs as Teradata processes each data block only once …

Read more

Teradata Antiselect: Selecting All Columns Except the Ones You Exclude

Illustration of a glossy orange database cylinder with data fragments across its surface

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

Illustration of a glossy orange database cylinder with data fragments across its surface

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

High-Performance Calculations with Teradata Ordered Analytical Functions

Illustration of a glossy orange database cylinder with data fragments across its surface

Teradata employs two distinct approaches in Ordered Analytic Functions for preparing the data layout necessary for processing. This article explains both approaches and their respective advantages and disadvantages. Teradata Ordered Analytical Functions Teradata Analytic Functions are versatile tools that allow for a wide range of applications. The ability to retrieve previous and subsequent rows is …

Read more

Enhancing Your Teradata Vantage Design with Teradata Historisation: A Comprehensive Method Popular

Illustration of a glossy orange database cylinder with data fragments across its surface

Situation and Setup of a Historisation in Teradata Vantage Imagine that the time has come to improve your physical data model. Flawed or obsolete Teradata Vantage historisation design decisions need to be corrected. You are asked to separate tables of the same entity with different attributes. We do not question why there are separate tables …

Read more

Why Teradata’s LIKE operator behaves differently for CHAR and VARCHAR columns

Illustration of a glossy orange database cylinder with data fragments across its surface

Have you observed the different behavior of the Teradata LIKE operator when applied to a CHAR or VARCHAR data type column? Consider the following table as an illustration: Creating a table: To illustrate, we will add a single row. We will run the SQL statement for the column with the VARCHAR data type. Next, we …

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 & Jacksonville, 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.