InterviewSolution
Saved Bookmarks
| 1. |
Explain different string manipulation operators and functions associated with Teradata. |
|
Answer» The Teradata String functions are used to manipulate STRINGS and are also compatible with the ANSI STANDARD. Additionally, it supports some standard string functions as WELL as the Teradata extensions to those functions.
Example: Consider a string “InterviewBit” from a table. SELECT SUBSTRING('Interviewbit' FROM 1 FOR 5);Output: Inter
Example: SELECT POSITION("r" IN "InterviewBit");Output: 5
Example: SELECT TRIM(" InterviewBit ");Output: InterviewBit
Example: SELECT UPPER("InterviewBit");Output: INTERVIEWBIT
Example: SELECT LOWER("INTERVIEWBIT");Output: interviewbit |
|