Purpose
For each scope level, returns the random AMP statistical samples that have been set.
For more information about random AMP samples, see:
- “DIAGNOSTIC DUMP SAMPLES”
- “DIAGNOSTIC SET SAMPLES”
- SQL Request and Transaction Processing
Required Privileges
None.
Syntax
Syntax Elements
- target_system_name
- Name of the target system for which information is to be reported.
ANSI Compliance
DIAGNOSTIC HELP SAMPLES is a Teradata extension to the ANSI SQL:2011 standard.
DIAGNOSTIC HELP SAMPLES and Target Level Emulation
DIAGNOSTIC HELP SAMPLES does not require Target Level Emulation to be enabled, but it cannot report scope level statistics unless TLE is enabled. An error message indicates that TLE is not enabled.
Session Mode Restrictions
You cannot perform DIAGNOSTIC HELP SAMPLES in ANSI session mode or within explicit transaction boundaries in Teradata session mode.
Example: Display All the Samples Set
This request displays all the samples set in all scope levels.
DIAGNOSTIC HELP SAMPLES;
Example: Display All the Samples Set for a System
This request displays all the samples set in all scope levels for the test_1 system. The scope level for test_1 is set to SESSION.
DIAGNOSTIC HELP SAMPLES Test_1; *** Help information returned. One row. *** Total elapsed time was 1 second. SystemName TEST_1 DatabaseName EMPLOYEE TableName PAYROLL Level SESSION