My Oracle Support Banner

No Rows Selected When Using TRUNC Command To Compare Dates (Doc ID 1042289.6)

Last updated on MAY 31, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.7.4 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Goal

How can you truncate the time portion of the date?

If you use the following syntax:

no rows are selected.

The date comparisons have to be the same to return data, but how do you achieve this?

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.