WorkloadQueries - Advanced SQL Engine - Teradata Database

SQL Request and Transaction Processing

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
uqf1592445067244.ditamap
dita:ditavalPath
uqf1592445067244.ditaval
dita:id
B035-1142
lifecycle
previous
Product Category
Teradata Vantage™

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.