O'Reilly logo

Teradata SQL by Tom Coffing, Mike Larkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15 - Substrings and Positioning Functions

“It is not the position but the disposition.’

- J.E. Dinger

 

The CHARACTERS Command Counts Characters

images

images

Answer Set

First_Name     Lnth
Billy         5
Cletus         6
John         4
Mandee         6

The CHARACTERS command counts the number of characters. If ‘Tom’ was in the Employee_Table, his length would be 3.

 

The CHARACTERS Command – Spaces can Count too

images

SELECT 'T o m' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required