Sql query help
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Sql query help

  1. #1
    Join Date
    Jul 2006
    Posts
    3

    Sql query help

    SQL> select hiredate , next_day(hiredate,'SATURDAY') from emp where ename='SMITH';

    HIREDATE NEXT_DAY(
    --------- ---------
    17-DEC-80 20-DEC-80


    i want to know the exact day when smith hired,how to get this, from above query i am getting first SATURDAY of his joining,

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    huh? Wouldn't that be hiredate?
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Jul 2002
    Location
    Northampton, England
    Posts
    612
    do you mean:

    to_char(hiredate, 'DAY')
    Assistance is Futile...

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