Results 1 to 2 of 2

Thread: select entries from whole week

  1. #1
    Join Date
    Jun 2004
    Posts
    19

    select entries from whole week

    Hello,

    I'd like to get all entries from "the whole week" (begin: Monday end: Sunday)
    from e.g the day sysdate - 222 (today: 20.10.2004) .This means all entries with a date between 08.03.2004
    and 14.03.2004 (including the borders !)

  2. #2
    Join Date
    Oct 2004
    Location
    Australia
    Posts
    1
    Use the next_day function. ie

    SELECT trunc(next_day(SYSDATE - 7,'MONDAY')), trunc(next_day(SYSDATE,'SUNDAY')) FROM dual

Posting Permissions

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