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

LASTDAY

LASTDAY

Returns the date of the last day of the month in the DateString.

Syntax

LASTDAY ( DateString )
Argument
DataType
Description
DateString
char, date, or timestamp
Date string from which to get the last day. The format of the date string can be a date or a time stamp.

Return Value

Date of the last day of the month specified in the DateString.

Example

The function call lastday( '2013-09-12' ) returns the last day of September: 2013-09-30

0 COMMENTS

We’d like to hear from you!