Solved

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

Posted on 2014-03-10
1
583 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to recover a database from a user managed backup

776 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