Solved

syntax for checking date GT 12/1/2013 in ORACLE - SQL

Posted on 2014-03-10
1
598 Views
Last Modified: 2014-03-11
Experts,

Can someone give me the syntax to check a date time field  for GE 12/1/2013 defined in Oracle as Num8  Datetime20. Oracle  in SQL?
0
Comment
Question by:morinia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
David earned 250 total points
ID: 39918989
Morinia, the question doesn't make sense: "Num....Oracle".  But my first stab is, "...WHERE colx >= TO_DATE('12/1/2013','MM/DD/YYYY');

Assuming colx to be a non-DATE datatype.  Is '12/1/2013' supposed to be numeric, char, or date?   And to Oracle, DATE records the day and time in a binary format.  TIMESTAMP gets into more precision, and allows time zones.

I'll be around if you wish to try again.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Suggested Courses

617 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