Current_Date Function; Examples Of Current_Date - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

CURRENT_DATE Function

The CURRENT_DATE function returns the local current date as a value of type DATE.
CURRENT_DATE
The CURRENT_DATE function returns the current date, such as 1997-09-28. The value returned
is a value of type DATE, not a string value.

Examples of CURRENT_DATE

Select rows from the ORDERS table based on the current date:
SELECT * FROM sales.orders
WHERE deliv_date >= CURRENT_DATE;
The PROJECT table has a column EST_COMPLETE of type INTERVAL DAY. If the current
date is the start date of your project, determine the estimated date of completion:
SELECT projdesc, CURRENT_DATE + est_complete
FROM persnl.project;
Project/Description
-------------------
SALT LAKE CITY
ROSS PRODUCTS
MONTANA TOOLS
AHAUS TOOL/SUPPLY
THE WORKS
THE WORKS
--- 6 row(s) selected.
(EXPR)
----------
2000-01-18
2000-02-02
2000-03-03
2000-03-03
2000-02-02
2000-02-02
CURRENT_DATE Function
313

Advertisement

Table of Contents
loading

Table of Contents