17.05 - Example: USING Request Modifier with TOP Operator - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
vnq1596660420420.ditamap
dita:ditavalPath
hoy1596145193032.ditaval

This example passes the value for n in the TOP n operator in its SELECT request using the INTEGER parameter a as defined in the USING request modifier.

     .SET RECORDMODE ON
     .IMPORT DATA FILE=employee.dat

     USING (a INTEGER)
     SELECT TOP :a *
     FROM employee;