17.10 - WorkloadQueries - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Request and Transaction Processing

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
User Guide
Publication ID
B035-1142-171K
Language
English (United States)

Function of WorkloadQueries

Captures the queries that belong to the workload named by WorkloadID.

WorkloadQueries Table Definition

The following CREATE TABLE request defines the WorkloadQueries table:

CREATE TABLE WorkloadQueries(
  WorkloadID           INTEGER NOT NULL,
  QueryID              INTEGER NOT NULL,
  Frequency            INTEGER NOT NULL)
PRIMARY INDEX(WorkLoadID)
UNIQUE INDEX(WorkloadID, QueryID);

Attribute Definitions for WorkloadQueries

The following table defines the WorkloadQueries table attributes:

Attribute Definition
WorkloadID
  • The workload ID that identifies the data in the row.
  • NUPI for the table.
  • One half of the USI column set for the table.
QueryID
  • Unique qualifier for a query. Used to map it to the workload.
  • One half of the USI column set for the table.
Frequency Indicates the number of times the query is typically performed in the workload.