DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Data Manipulation

  1. #1
    Join Date
    Jun 2001
    Posts
    45

    Exclamation Data Manipulation

    I want to find out the records in a field with date format dd/mm/yyyy hh:mi:ss AM

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    Quote Originally Posted by programmer
    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?
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

  3. #3
    Join Date
    Jun 2001
    Posts
    45
    The field is of type DATE

  4. #4
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    so whats the problem?

  5. #5
    Join Date
    Jun 2001
    Posts
    45
    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'

  6. #6
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    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

  7. #7
    Join Date
    Feb 2005
    Posts
    158
    If you are asking which rows have a non-midnight time component, then
    EFF_END_DT != TRUNC(EFF_END_DT)
    is probably best.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width