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

DATE (Date and Time)

DATE (Date and Time)

A date and time function that returns the equivalent DATE datatype value for the specified month, day, and year. The input values must be integers, and they must represent a valid date.

DATE Syntax

DATE (month, day, year)

DATE Result

Input
Output
12, 31, 2003
2003-12-31
CREATE TABLE emp_data (emonth INT, eday INT, eyear INT); INSERT INTO emp_data VALUES (12, 31, 2003); 1 row affected SELECT DATE(emonth, eday, eyear) FROM emp_data; 1 row selected 1 ---------- 2003-12-31

0 COMMENTS

We’d like to hear from you!