Click to See Complete Forum and Search --> : Data Manipulation


programmer
04-12-2006, 06:24 PM
I want to find out the records in a field with date format dd/mm/yyyy hh:mi:ss AM

jmodic
04-12-2006, 06:37 PM
I want to find out the records in a field with date format dd/mm/yyyy hh:mi:ss AM
And your "field" is of type VARCHAR2, no?

It is not, by any chance, of type DATE?

programmer
04-12-2006, 06:53 PM
The field is of type DATE

davey23uk
04-12-2006, 07:29 PM
so whats the problem?

programmer
04-12-2006, 07:56 PM
I want a Sql query to select and find all records in the format dd/mm/yyyy hh:mi:ss AM in the database. The field name is EFF_END_DT which is date field.
There are some records with the date format 'dd/mm/yyyy' and some with the format 'dd/mm/yyyy hh:mi:ss am'

davey23uk
04-12-2006, 08:36 PM
no, the format is how you ask it to be displayed, a date is a date is a date, they are all stored the same

gamyers
04-12-2006, 10:48 PM
If you are asking which rows have a non-midnight time component, then
EFF_END_DT != TRUNC(EFF_END_DT)
is probably best.