Solved

ORACLE SQL TO check date column against current date

Posted on 2009-04-14
2
975 Views
Last Modified: 2013-12-18
Have a oracle table which has a date field in it.  Trying to figure out how to pull the information back where date field equals current date

TABLE_A
Field Name         Type               Length
Name                 varchar2          50
Date_entered     Date                  7

Just wanting something like
Select * from TABLE_A where Date_entere = sysdate;

Not working though...
0
Comment
Question by:TheVeee
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 24137300
you want this:
Select * from TABLE_A where Date_entered >= trunc(sysdate) and Date_Entered < trunc(sysdate+1)

Open in new window

0
 
LVL 5

Author Closing Comment

by:TheVeee
ID: 31569854
Thanks!
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ORA-00923: FROM keyword not found where expected 3 95
error in my cursor 5 51
pivot rows to columns 1 46
Procedure syntax 5 50
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question