Solved

ORACLE SQL TO check date column against current date

Posted on 2009-04-14
2
971 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 142

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now