
- Teradata - Introduction
- Teradata - Installation
- Teradata - Architecture
- Teradata - Relational Concepts
- Teradata - Data Types
- Teradata - Tables
- Teradata - Data Manipulation
- Teradata - SELECT Statement
- Logical & Conditional Operators
- Teradata - SET Operators
- Teradata - String Manipulation
- Teradata - Date/Time Functions
- Teradata - Built-in Functions
- Teradata - Aggregate Functions
- Teradata - CASE & COALESCE
- Teradata - Primary Index
- Teradata - Joins
- Teradata - SubQueries
- Teradata Advanced
- Teradata - Table Types
- Teradata - Space Concepts
- Teradata - Secondary Index
- Teradata - Statistics
- Teradata - Compression
- Teradata - Explain
- Teradata - Hashing Algorithm
- Teradata - Join Index
- Teradata - Views
- Teradata - Macros
- Teradata - Stored Procedure
- Teradata - JOIN Strategies
- Teradata - Partitioned Primary Index
- Teradata - OLAP Functions
- Teradata - Data Protection
- Teradata - User Management
- Teradata - Performance Tuning
- Teradata - FastLoad
- Teradata - MultiLoad
- Teradata - FastExport
- Teradata - BTEQ
- Teradata Useful Resources
- Teradata - Questions & Answers
- Teradata - Quick Guide
- Teradata - Useful Resources
- Teradata - Discussion
Teradata - String Manipulation
Teradata provides several functions to manipulate the strings. These functions are compatible with ANSI standard.
Sr.No | String Function & Description |
---|---|
1 |
|| Concatenates strings together |
2 |
SUBSTR Extracts a portion of a string (Teradata extension) |
3 |
SUBSTRING Extracts a portion of a string (ANSI standard) |
4 |
INDEX Locates the position of a character in a string (Teradata extension) |
5 |
POSITION Locates the position of a character in a string (ANSI standard) |
6 |
TRIM Trims blanks from a string |
7 |
UPPER Converts a string to uppercase |
8 |
LOWER Converts a string to lowercase |
Example
Following table lists some of the string functions with the results.
String Function | Result |
---|---|
SELECT SUBSTRING(warehouse FROM 1 FOR 4) | ware |
SELECT SUBSTR(warehouse,1,4) | ware |
SELECT data || || warehouse | data warehouse |
SELECT UPPER(data) | DATA |
SELECT LOWER(DATA) | data |
Advertisements