Book Image

Teradata Cookbook

By : Abhinav Khandelwal, Viswanath Kasi, Rajsekhar Bhamidipati
Book Image

Teradata Cookbook

By: Abhinav Khandelwal, Viswanath Kasi, Rajsekhar Bhamidipati

Overview of this book

Teradata is an enterprise software company that develops and sells its eponymous relational database management system (RDBMS), which is considered to be a leading data warehousing solutions and provides data management solutions for analytics. This book will help you get all the practical information you need for the creation and implementation of your data warehousing solution using Teradata. The book begins with recipes on quickly setting up a development environment so you can work with different types of data structuring and manipulation function. You will tackle all problems related to efficient querying, stored procedure searching, and navigation techniques. Additionally, you’ll master various administrative tasks such as user and security management, workload management, high availability, performance tuning, and monitoring. This book is designed to take you through the best practices of performing the real daily tasks of a Teradata DBA, and will help you tackle any problem you might encounter in the process.
Table of Contents (19 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Identifying stats for a table


You can now collect stats on the following objects:

  • Columns
  • Expression or statement
  • Table summary level

With these options in hand, we need to identify when we need to collect stats, on which column, and what type of stats need to be collected.

Statistics are collected on either a table or columns in a table. The following information is collected when we execute the collect statistic command:

  • Number of rows in the table
  • Average row size
  •  Information on all indexes in which statistics were collected
  • The range of values for the column(s) in which statistics were collected
  • The number of rows per value for the column(s) in which statistics were collected
  •  The number of NULLs for the column(s) in which statistics were collected

In this recipe, we will list steps to identify tables based on size and column types in a table to collect statistics.

Getting ready

You need to connect to the Teradata system using SQLA or Studio. 

How to do it...

  1. Connect to Teradata using SQLA or Studio...