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

Labeled Durations

Labeled Durations

Expressions can be cast into an interval type by labeling the expression as a duration. This
labeled duration
is represented by a numeric expression followed by one of the duration keywords. The supported labeled durations are DAY(S), MONTH(S), YEAR(S), HOUR(S), MINUTE(S), SECOND(S), and MICROSECOND(S).
The following table provides the possible labeled durations and resulting interval types:
Label
Result Type
<integer expression> DAYS (or DAY)
date interval
<integer expression> MONTHS (or MONTH)
date interval
<integer expression> YEARS (or YEAR)
date interval
<integer expression> HOURS (or HOUR)
time interval
<integer expression> MINUTES (or MINUTE)
time interval
<integer expression> SECONDS (or SECOND)
time interval
<decimal/float expression> SECONDS (or SECOND)
timestamp interval
<numeric expression> MICROSECONDS (or MICROSECOND)
timestamp interval

Examples

277 DAYS (1024*1024-100) MINUTES 10e2 SECONDS

0 COMMENTS

We’d like to hear from you!