16.20 - Example: Using "Batch" in the Project Description - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2020-03-25
dita:mapPath
xzf1512079057909.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
kby1472250656485

The following example displays a list of projects in which the word Batch appears in the project description, and lists the starting position of the word.

   SELECT proj_id, INDEX(description, 'Batch') 
   FROM project 
   WHERE INDEX(description, 'Batch') > 0 ; 

The system returns the following report.

   proj_id       Index (description, 'Batch')
   ------------- ----------------------------
   OE2-0003                                 5
   AP2-0003                                13
   OE1-0003                                 5
   AP1-0003                                13
   AR1-0003                                10
   AR2-0003                                10