Table of Contents

Search

  1. About the Data Vault SQL Reference
  2. Introduction to SQL Reference for Informatica Data Vault
  3. Date and Time Arithmetic
  4. WHERE Clauses
  5. UNION Operator
  6. Parameterized Query
  7. Functions

Data Vault SQL Reference

Data Vault SQL Reference

LEFT

LEFT

A string function that returns a substring from
value-expression
consisting of the number of leftmost characters indicated by
length
. The
length
parameter is a numeric expression that evaluates to an integer value. If the value of
length
is greater than or equal to the length of the input string, the whole string is returned.

LEFT Syntax

LEFT ( char value-expression, integer length)

LEFT Example

Input
Output
'isopropyl', 3
'iso'
CREATE TABLE string_table (col1 VARCHAR(20)); INSERT INTO string_table VALUES (LEFT('isopropyl', 3)); 1 row affected SELECT col1 FROM string_table; 1 row selected col1 -------------------- iso

0 COMMENTS

We’d like to hear from you!