Week days dates required

Hi
I have a table with two columns..Start date and End date.
Start date End date
3/7/2011 6:00:00 AM 4/5/2011 6:00:00 AM (mm/dd/yyyy hh:mi:ss) format
I need to display Every monday date and Every sunday date between start and end dates.
Need help..!!
Regards
Arpitha

Having said that,
The solutions like direct connect by on difference will work only if the table has one row.
Here is the one if you are working on multiple rows with start dates and end dates
SQL> WITH T
  2       AS (SELECT TO_DATE ( '3/7/2011 6:00:00 AM', 'mm/dd/yyyy hh:mi:ss AM') start_date,
  3                  TO_DATE ( '4/5/2011 6:00:00 AM', 'mm/dd/yyyy hh:mi:ss AM') end_date FROM DUAL UNION ALL
  4           SELECT TO_DATE ( '4/7/2011 6:00:00 AM', 'mm/dd/yyyy hh:mi:ss AM') start_date,
  5                  TO_DATE ( '5/5/2011 6:00:00 AM', 'mm/dd/yyyy hh:mi:ss AM')
  6             FROM DUAL)
  7  SELECT dt,TO_CHAR ( dt, 'fmday') day_of_week
  8  FROM (SELECT TRUNC (start_date + (lvl - 1)) dt
  9    FROM T A,
10         (SELECT LEVEL lvl
11            FROM (SELECT MAX (end_date - start_date) AS diff FROM T)
12          CONNECT BY LEVEL <= diff + 1)
13   WHERE lvl <= (end_date - start_date) + 1)
14   WHERE TO_CHAR ( dt, 'fmday') IN ('monday', 'sunday');
DT        DAY_OF_WE
07-MAR-11 monday
10-APR-11 sunday
11-APR-11 monday
13-MAR-11 sunday
14-MAR-11 monday
17-APR-11 sunday
18-APR-11 monday
20-MAR-11 sunday
21-MAR-11 monday
24-APR-11 sunday
25-APR-11 monday
27-MAR-11 sunday
28-MAR-11 monday
01-MAY-11 sunday
02-MAY-11 monday
03-APR-11 sunday
04-APR-11 monday
17 rows selected.
SQL> G.

Similar Messages

  • Day by Day Data exluding week ends and holidays.

    Hi,
    Can any give me solution for below requirement...
                                    13/06/2007 14/06/2007 15/06/2006 18/06/2007 .. till 20 days
    of Lines Processed   15               18               13            19           .........    
    of Units Processed   17               14               10            11           .........    
    of Lines P Received  16               19               20            16           .........    
    of Units P Received  19               22               40            17           .........    
    here the user will give the input of first value(13/06/2007), now we have to display 19 days after user input(13/06/2007) value and we need to skip the holidays and week ends in the report.
    In the above report 16/06/2006 & 17/06/2006 are week ends thats why those 2 days data is not there.
    Please suggest me how can we do it this requirement.
    Thanks & Regards
    Venkat

    before you get a dozen of answers using artifice like all_objects or connect by, I post you this one
    create table date_table(d date primary key);
    exec for d in 0..10000 loop insert into date_table values(date '1980-01-01'+d);end loop;commit
    select d,count(hiredate) from date_table left join emp on (d=hiredate) where d between date '1980-12-01' and date '1980-12-31' group by d order by d;
    D         COUNT(HIREDATE)
    01-DEC-80               0
    02-DEC-80               0
    03-DEC-80               0
    04-DEC-80               0
    05-DEC-80               0
    06-DEC-80               0
    07-DEC-80               0
    08-DEC-80               0
    09-DEC-80               0
    10-DEC-80               0
    11-DEC-80               0
    12-DEC-80               0
    13-DEC-80               0
    14-DEC-80               0
    15-DEC-80               0
    16-DEC-80               0
    17-DEC-80               1
    18-DEC-80               0
    19-DEC-80               0
    20-DEC-80               0
    21-DEC-80               0
    22-DEC-80               0
    23-DEC-80               0
    24-DEC-80               0
    25-DEC-80               0
    26-DEC-80               0
    27-DEC-80               0
    28-DEC-80               0
    29-DEC-80               0
    30-DEC-80               0
    31-DEC-80               0
    31 rows selected.Message was edited by:
    Laurent Schneider
    primary key added for integrity and performance

  • Week ending date after 365 days in sql

    Hi Experts,
    I need to find the week ending date after 365 days of the given week start date .
    Example : Week start date : 23-Jan -2011 (Sunday)
    Desired week end date : 28-Jan-2012 (Saturday)
    How to achive this through sql ?
    Thanks .

    Hi,
    Check below this may help you, adjust "(t.day_num+1)" as per your requirment.
    with t as
    (select decode(to_char(trunc(sysdate + 365), 'dy'),'mon',1,
                                                      'tue',2,
                                                      'wed',3,
                                                      'thu',4,
                                                      'fri',5,
                                                      'sat',6,
                                                      'sun',7) day_num
                                                      from dual
    select to_char(trunc(sysdate + 365)+ (7-(t.day_num+1)),'dd dy-mm-yyyy')   
                                                      from t ;

  • Find the data based on week-end ,week-day

    Hi,
    Db : 11.2.0.1
    We have the table LX_CPU_TRACK_DLY
    desc LX_CPU_TRACK_DLY
    Name Null? Type
    SYSTEMDATE DATE
    HOST_NAME VARCHAR2(50 CHAR)
    USR_PRCT NUMBER(10,5)
    SYS_PRCT NUMBER(10,5)
    WAIT_PRCT NUMBER(10,5)
    IDLE_PRCT NUMBER(10,5)
    PHYS_CPU_USD NUMBER(10,5)
    RUN_Q NUMBER(10,5)
    I want to fetch data based on week end(sat,sun) ,week day(mon-fri) on systemdate column for entire month in two seperate query.
    Any suggestions
    Thanks
    Edited by: 922884 on Nov 22, 2012 11:01 AM

    Hi,
    Thanks
    ilm-426 21-11-2012 20:38:00
    ilm-426 21-11-2012 20:39:00
    ilm-426 21-11-2012 20:40:00
    ilm-426 21-11-2012 20:41:00
    ilm-426 21-11-2012 20:42:00
    ilm-426 21-11-2012 20:43:00
    ilm-426 21-11-2012 20:44:00
    ilm-426 21-11-2012 20:45:00
    ilm-426 21-11-2012 20:46:00
    ilm-426 21-11-2012 20:47:00
    ilm-426 21-11-2012 20:48:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-426 21-11-2012 20:49:00
    ilm-426 21-11-2012 20:50:00
    ilm-426 21-11-2012 20:51:00
    ilm-426 21-11-2012 20:52:00
    ilm-426 21-11-2012 20:53:00
    ilm-426 21-11-2012 20:54:00
    ilm-426 21-11-2012 20:55:00
    ilm-426 21-11-2012 20:56:00
    ilm-426 21-11-2012 20:57:00
    ilm-426 21-11-2012 20:58:00
    ilm-426 21-11-2012 20:59:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-426 21-11-2012 21:00:00
    ilm-429 21-11-2012 20:01:00
    ilm-429 21-11-2012 20:02:00
    ilm-429 21-11-2012 20:03:00
    ilm-429 21-11-2012 20:04:00
    ilm-429 21-11-2012 20:05:00
    ilm-429 21-11-2012 20:06:00
    ilm-429 21-11-2012 20:07:00
    ilm-429 21-11-2012 20:08:00
    ilm-429 21-11-2012 20:09:00
    ilm-429 21-11-2012 20:10:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:11:00
    ilm-429 21-11-2012 20:12:00
    ilm-429 21-11-2012 20:13:00
    ilm-429 21-11-2012 20:14:00
    ilm-429 21-11-2012 20:15:00
    ilm-429 21-11-2012 20:16:00
    ilm-429 21-11-2012 20:17:00
    ilm-429 21-11-2012 20:18:00
    ilm-429 21-11-2012 20:19:00
    ilm-429 21-11-2012 20:20:00
    ilm-429 21-11-2012 20:21:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:22:00
    ilm-429 21-11-2012 20:23:00
    ilm-429 21-11-2012 20:24:00
    ilm-429 21-11-2012 20:25:00
    ilm-429 21-11-2012 20:26:00
    ilm-429 21-11-2012 20:27:00
    ilm-429 21-11-2012 20:28:00
    ilm-429 21-11-2012 20:29:00
    ilm-429 21-11-2012 20:30:00
    ilm-429 21-11-2012 20:31:00
    ilm-429 21-11-2012 20:32:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:33:00
    ilm-429 21-11-2012 20:34:00
    ilm-429 21-11-2012 20:35:00
    ilm-429 21-11-2012 20:36:00
    ilm-429 21-11-2012 20:37:00
    ilm-429 21-11-2012 20:38:00
    ilm-429 21-11-2012 20:39:00
    ilm-429 21-11-2012 20:40:00
    ilm-429 21-11-2012 20:41:00
    ilm-429 21-11-2012 20:42:00
    ilm-429 21-11-2012 20:43:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:44:00
    ilm-429 21-11-2012 20:45:00
    ilm-429 21-11-2012 20:46:00
    ilm-429 21-11-2012 20:47:00
    ilm-429 21-11-2012 20:48:00
    ilm-429 21-11-2012 20:49:00
    ilm-429 21-11-2012 20:50:00
    ilm-429 21-11-2012 20:51:00
    ilm-429 21-11-2012 20:52:00
    ilm-429 21-11-2012 20:53:00
    ilm-429 21-11-2012 20:54:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-429 21-11-2012 20:55:00
    ilm-429 21-11-2012 20:56:00
    ilm-429 21-11-2012 20:57:00
    ilm-429 21-11-2012 20:58:00
    ilm-429 21-11-2012 20:59:00
    ilm-429 21-11-2012 21:00:00
    ilm-495 21-11-2012 20:01:00
    ilm-495 21-11-2012 20:02:00
    ilm-495 21-11-2012 20:03:00
    ilm-495 21-11-2012 20:04:00
    ilm-495 21-11-2012 20:05:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:06:00
    ilm-495 21-11-2012 20:07:00
    ilm-495 21-11-2012 20:08:00
    ilm-495 21-11-2012 20:09:00
    ilm-495 21-11-2012 20:10:00
    ilm-495 21-11-2012 20:11:00
    ilm-495 21-11-2012 20:12:00
    ilm-495 21-11-2012 20:13:00
    ilm-495 21-11-2012 20:14:00
    ilm-495 21-11-2012 20:15:00
    ilm-495 21-11-2012 20:16:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:17:00
    ilm-495 21-11-2012 20:18:00
    ilm-495 21-11-2012 20:19:00
    ilm-495 21-11-2012 20:20:00
    ilm-495 21-11-2012 20:21:00
    ilm-495 21-11-2012 20:22:00
    ilm-495 21-11-2012 20:23:00
    ilm-495 21-11-2012 20:24:00
    ilm-495 21-11-2012 20:25:00
    ilm-495 21-11-2012 20:26:00
    ilm-495 21-11-2012 20:27:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:28:00
    ilm-495 21-11-2012 20:29:00
    ilm-495 21-11-2012 20:30:00
    ilm-495 21-11-2012 20:31:00
    ilm-495 21-11-2012 20:32:00
    ilm-495 21-11-2012 20:33:00
    ilm-495 21-11-2012 20:34:00
    ilm-495 21-11-2012 20:35:00
    ilm-495 21-11-2012 20:36:00
    ilm-495 21-11-2012 20:37:00
    ilm-495 21-11-2012 20:38:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:39:00
    ilm-495 21-11-2012 20:40:00
    ilm-495 21-11-2012 20:41:00
    ilm-495 21-11-2012 20:42:00
    ilm-495 21-11-2012 20:43:00
    ilm-495 21-11-2012 20:44:00
    ilm-495 21-11-2012 20:45:00
    ilm-495 21-11-2012 20:46:00
    ilm-495 21-11-2012 20:47:00
    ilm-495 21-11-2012 20:48:00
    ilm-495 21-11-2012 20:49:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:50:00
    ilm-495 21-11-2012 20:51:00
    ilm-495 21-11-2012 20:52:00
    ilm-495 21-11-2012 20:53:00
    ilm-495 21-11-2012 20:54:00
    ilm-495 21-11-2012 20:55:00
    ilm-495 21-11-2012 20:56:00
    ilm-495 21-11-2012 20:57:00
    ilm-495 21-11-2012 20:58:00
    ilm-495 21-11-2012 20:59:00
    ilm-495 21-11-2012 21:00:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:01:00
    ilm-500 21-11-2012 20:02:00
    ilm-500 21-11-2012 20:03:00
    ilm-500 21-11-2012 20:04:00
    ilm-500 21-11-2012 20:05:00
    ilm-251 21-11-2012 20:01:00
    ilm-251 21-11-2012 20:02:00
    ilm-251 21-11-2012 20:03:00
    ilm-251 21-11-2012 20:04:00
    ilm-251 21-11-2012 20:05:00
    ilm-251 21-11-2012 20:06:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:07:00
    ilm-251 21-11-2012 20:08:00
    ilm-251 21-11-2012 20:09:00
    ilm-251 21-11-2012 20:10:00
    ilm-251 21-11-2012 20:11:00
    ilm-251 21-11-2012 20:12:00
    ilm-251 21-11-2012 20:13:00
    ilm-251 21-11-2012 20:14:00
    ilm-251 21-11-2012 20:15:00
    ilm-251 21-11-2012 20:16:00
    ilm-251 21-11-2012 20:17:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:18:00
    ilm-251 21-11-2012 20:19:00
    ilm-251 21-11-2012 20:20:00
    ilm-251 21-11-2012 20:21:00
    ilm-251 21-11-2012 20:22:00
    ilm-251 21-11-2012 20:23:00
    ilm-251 21-11-2012 20:24:00
    ilm-251 21-11-2012 20:25:00
    ilm-251 21-11-2012 20:26:00
    ilm-251 21-11-2012 20:27:00
    ilm-251 21-11-2012 20:28:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:06:00
    ilm-500 21-11-2012 20:07:00
    ilm-500 21-11-2012 20:08:00
    ilm-500 21-11-2012 20:09:00
    ilm-500 21-11-2012 20:10:00
    ilm-500 21-11-2012 20:11:00
    ilm-500 21-11-2012 20:12:00
    ilm-500 21-11-2012 20:13:00
    ilm-500 21-11-2012 20:14:00
    ilm-500 21-11-2012 20:15:00
    ilm-500 21-11-2012 20:16:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:17:00
    ilm-500 21-11-2012 20:18:00
    ilm-500 21-11-2012 20:19:00
    ilm-500 21-11-2012 20:20:00
    ilm-500 21-11-2012 20:21:00
    ilm-500 21-11-2012 20:22:00
    ilm-500 21-11-2012 20:23:00
    ilm-500 21-11-2012 20:24:00
    ilm-500 21-11-2012 20:25:00
    ilm-500 21-11-2012 20:26:00
    ilm-500 21-11-2012 20:27:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:28:00
    ilm-500 21-11-2012 20:29:00
    ilm-500 21-11-2012 20:30:00
    ilm-500 21-11-2012 20:31:00
    ilm-500 21-11-2012 20:32:00
    ilm-500 21-11-2012 20:33:00
    ilm-500 21-11-2012 20:34:00
    ilm-500 21-11-2012 20:35:00
    ilm-500 21-11-2012 20:36:00
    ilm-500 21-11-2012 20:37:00
    ilm-500 21-11-2012 20:38:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:39:00
    ilm-500 21-11-2012 20:40:00
    ilm-500 21-11-2012 20:41:00
    ilm-500 21-11-2012 20:42:00
    ilm-500 21-11-2012 20:43:00
    ilm-500 21-11-2012 20:44:00
    ilm-500 21-11-2012 20:45:00
    ilm-500 21-11-2012 20:46:00
    ilm-500 21-11-2012 20:47:00
    ilm-500 21-11-2012 20:48:00
    ilm-500 21-11-2012 20:49:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-500 21-11-2012 20:50:00
    ilm-500 21-11-2012 20:51:00
    ilm-500 21-11-2012 20:52:00
    ilm-500 21-11-2012 20:53:00
    ilm-500 21-11-2012 20:54:00
    ilm-500 21-11-2012 20:55:00
    ilm-500 21-11-2012 20:56:00
    ilm-500 21-11-2012 20:57:00
    ilm-500 21-11-2012 20:58:00
    ilm-500 21-11-2012 20:59:00
    ilm-500 21-11-2012 21:00:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:29:00
    ilm-251 21-11-2012 20:30:00
    ilm-251 21-11-2012 20:31:00
    ilm-251 21-11-2012 20:32:00
    ilm-251 21-11-2012 20:33:00
    ilm-251 21-11-2012 20:34:00
    ilm-251 21-11-2012 20:35:00
    ilm-251 21-11-2012 20:36:00
    ilm-251 21-11-2012 20:37:00
    ilm-251 21-11-2012 20:38:00
    ilm-251 21-11-2012 20:39:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:40:00
    ilm-251 21-11-2012 20:41:00
    ilm-251 21-11-2012 20:42:00
    ilm-251 21-11-2012 20:43:00
    ilm-251 21-11-2012 20:44:00
    ilm-251 21-11-2012 20:45:00
    ilm-251 21-11-2012 20:46:00
    ilm-251 21-11-2012 20:47:00
    ilm-251 21-11-2012 20:48:00
    ilm-251 21-11-2012 20:49:00
    ilm-251 21-11-2012 20:50:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-251 21-11-2012 20:51:00
    ilm-251 21-11-2012 20:52:00
    ilm-251 21-11-2012 20:53:00
    ilm-251 21-11-2012 20:54:00
    ilm-251 21-11-2012 20:55:00
    ilm-251 21-11-2012 20:56:00
    ilm-251 21-11-2012 20:57:00
    ilm-251 21-11-2012 20:58:00
    ilm-251 21-11-2012 20:59:00
    ilm-251 21-11-2012 21:00:00
    ilm-425 21-11-2012 20:01:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:02:00
    ilm-425 21-11-2012 20:03:00
    ilm-425 21-11-2012 20:04:00
    ilm-425 21-11-2012 20:05:00
    ilm-425 21-11-2012 20:06:00
    ilm-425 21-11-2012 20:07:00
    ilm-425 21-11-2012 20:08:00
    ilm-425 21-11-2012 20:09:00
    ilm-425 21-11-2012 20:10:00
    ilm-425 21-11-2012 20:11:00
    ilm-425 21-11-2012 20:12:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:13:00
    ilm-425 21-11-2012 20:14:00
    ilm-425 21-11-2012 20:15:00
    ilm-425 21-11-2012 20:16:00
    ilm-425 21-11-2012 20:17:00
    ilm-425 21-11-2012 20:18:00
    ilm-425 21-11-2012 20:19:00
    ilm-425 21-11-2012 20:20:00
    ilm-425 21-11-2012 20:21:00
    ilm-425 21-11-2012 20:22:00
    ilm-425 21-11-2012 20:23:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:24:00
    ilm-425 21-11-2012 20:25:00
    ilm-425 21-11-2012 20:26:00
    ilm-425 21-11-2012 20:27:00
    ilm-425 21-11-2012 20:28:00
    ilm-425 21-11-2012 20:29:00
    ilm-425 21-11-2012 20:30:00
    ilm-425 21-11-2012 20:31:00
    ilm-425 21-11-2012 20:32:00
    ilm-425 21-11-2012 20:33:00
    ilm-425 21-11-2012 20:34:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:35:00
    ilm-425 21-11-2012 20:36:00
    ilm-425 21-11-2012 20:37:00
    ilm-425 21-11-2012 20:38:00
    ilm-425 21-11-2012 20:39:00
    ilm-425 21-11-2012 20:40:00
    ilm-425 21-11-2012 20:41:00
    ilm-425 21-11-2012 20:42:00
    ilm-425 21-11-2012 20:43:00
    ilm-425 21-11-2012 20:44:00
    ilm-425 21-11-2012 20:45:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:46:00
    ilm-425 21-11-2012 20:47:00
    ilm-425 21-11-2012 20:48:00
    ilm-425 21-11-2012 20:49:00
    ilm-425 21-11-2012 20:50:00
    ilm-425 21-11-2012 20:51:00
    ilm-425 21-11-2012 20:52:00
    ilm-425 21-11-2012 20:53:00
    ilm-425 21-11-2012 20:54:00
    ilm-425 21-11-2012 20:55:00
    ilm-425 21-11-2012 20:56:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-425 21-11-2012 20:57:00
    ilm-425 21-11-2012 20:58:00
    ilm-425 21-11-2012 20:59:00
    ilm-425 21-11-2012 21:00:00
    ilm-428 21-11-2012 20:01:00
    ilm-428 21-11-2012 20:02:00
    ilm-428 21-11-2012 20:03:00
    ilm-428 21-11-2012 20:04:00
    ilm-428 21-11-2012 20:05:00
    ilm-428 21-11-2012 20:06:00
    ilm-428 21-11-2012 20:07:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:08:00
    ilm-428 21-11-2012 20:09:00
    ilm-428 21-11-2012 20:10:00
    ilm-428 21-11-2012 20:11:00
    ilm-428 21-11-2012 20:12:00
    ilm-428 21-11-2012 20:13:00
    ilm-428 21-11-2012 20:14:00
    ilm-428 21-11-2012 20:15:00
    ilm-428 21-11-2012 20:16:00
    ilm-428 21-11-2012 20:17:00
    ilm-428 21-11-2012 20:18:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:19:00
    ilm-428 21-11-2012 20:20:00
    ilm-428 21-11-2012 20:21:00
    ilm-428 21-11-2012 20:22:00
    ilm-428 21-11-2012 20:23:00
    ilm-428 21-11-2012 20:24:00
    ilm-428 21-11-2012 20:25:00
    ilm-428 21-11-2012 20:26:00
    ilm-428 21-11-2012 20:27:00
    ilm-428 21-11-2012 20:28:00
    ilm-428 21-11-2012 20:29:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:30:00
    ilm-428 21-11-2012 20:31:00
    ilm-428 21-11-2012 20:32:00
    ilm-428 21-11-2012 20:33:00
    ilm-428 21-11-2012 20:34:00
    ilm-428 21-11-2012 20:35:00
    ilm-428 21-11-2012 20:36:00
    ilm-428 21-11-2012 20:37:00
    ilm-428 21-11-2012 20:38:00
    ilm-428 21-11-2012 20:39:00
    ilm-428 21-11-2012 20:40:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:41:00
    ilm-428 21-11-2012 20:42:00
    ilm-428 21-11-2012 20:43:00
    ilm-428 21-11-2012 20:44:00
    ilm-428 21-11-2012 20:45:00
    ilm-428 21-11-2012 20:46:00
    ilm-428 21-11-2012 20:47:00
    ilm-428 21-11-2012 20:48:00
    ilm-428 21-11-2012 20:49:00
    ilm-428 21-11-2012 20:50:00
    ilm-428 21-11-2012 20:51:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-428 21-11-2012 20:52:00
    ilm-428 21-11-2012 20:53:00
    ilm-428 21-11-2012 20:54:00
    ilm-428 21-11-2012 20:55:00
    ilm-428 21-11-2012 20:56:00
    ilm-428 21-11-2012 20:57:00
    ilm-428 21-11-2012 20:58:00
    ilm-428 21-11-2012 20:59:00
    ilm-428 21-11-2012 21:00:00
    ilm-495 21-11-2012 20:01:00
    ilm-495 21-11-2012 20:02:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:03:00
    ilm-495 21-11-2012 20:04:00
    ilm-495 21-11-2012 20:05:00
    ilm-495 21-11-2012 20:06:00
    ilm-495 21-11-2012 20:07:00
    ilm-495 21-11-2012 20:08:00
    ilm-495 21-11-2012 20:09:00
    ilm-495 21-11-2012 20:10:00
    ilm-495 21-11-2012 20:11:00
    ilm-495 21-11-2012 20:12:00
    ilm-495 21-11-2012 20:13:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:14:00
    ilm-495 21-11-2012 20:15:00
    ilm-495 21-11-2012 20:16:00
    ilm-495 21-11-2012 20:17:00
    ilm-495 21-11-2012 20:18:00
    ilm-495 21-11-2012 20:19:00
    ilm-495 21-11-2012 20:20:00
    ilm-495 21-11-2012 20:21:00
    ilm-495 21-11-2012 20:22:00
    ilm-495 21-11-2012 20:23:00
    ilm-495 21-11-2012 20:24:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:25:00
    ilm-495 21-11-2012 20:26:00
    ilm-495 21-11-2012 20:27:00
    ilm-495 21-11-2012 20:28:00
    ilm-495 21-11-2012 20:29:00
    ilm-495 21-11-2012 20:30:00
    ilm-495 21-11-2012 20:31:00
    ilm-495 21-11-2012 20:32:00
    ilm-495 21-11-2012 20:33:00
    ilm-495 21-11-2012 20:34:00
    ilm-495 21-11-2012 20:35:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:36:00
    ilm-495 21-11-2012 20:37:00
    ilm-495 21-11-2012 20:38:00
    ilm-495 21-11-2012 20:39:00
    ilm-495 21-11-2012 20:40:00
    ilm-495 21-11-2012 20:41:00
    ilm-495 21-11-2012 20:42:00
    ilm-495 21-11-2012 20:43:00
    ilm-495 21-11-2012 20:44:00
    ilm-495 21-11-2012 20:45:00
    ilm-495 21-11-2012 20:46:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:47:00
    ilm-495 21-11-2012 20:48:00
    ilm-495 21-11-2012 20:49:00
    ilm-495 21-11-2012 20:50:00
    ilm-495 21-11-2012 20:51:00
    ilm-495 21-11-2012 20:52:00
    ilm-495 21-11-2012 20:53:00
    ilm-495 21-11-2012 20:54:00
    ilm-495 21-11-2012 20:55:00
    ilm-495 21-11-2012 20:56:00
    ilm-495 21-11-2012 20:57:00
    HOST_NAME TO_CHAR(SYSTEMDATE,
    ilm-495 21-11-2012 20:58:00
    ilm-495 21-11-2012 20:59:00
    ilm-495 21-11-2012 21:00:00
    1620 rows selected.
    Thanks

  • How to get the day of 52 weeks ago data

    hi all:
    i recently encounter the difficulty that using the current data to get the 52 weeks ago data in essbase.the fct table is like this:
    current_dt the_day_of_week sales
    20110203 5dw05 100
    20100207 5dw05 30
    note: "5dw05" means the fifth day of five week in the selected year
    the question is which essbase formula to choise or how to use them in essbase outline structure can meet the bussines role that when the biz men chlic on the member "20110203" of time dimension, the extension mesure "bf_sales" value is 30.
    the outline i am about to design under the bellow:
    dim_time
    201002
    20110201(alias 4dw05)
    20110202(alias 5dw05)
    20110203(alias 6dw05)
    201102
    20110206(alias 4dw05)
    20110207(alias 5dw05)
    dim_measure
    sales
    bf_sales(will use the essbase formula,but do not know which function to choise or how to use it)
    i am lovely hope one of you may give me suggestion on this issue. thanks a lot for all of you!

    If you put the Apple calendar app on the first screen, it shows the day and date (no month/year). E.g Sunday 20.

  • How can i make requirement date in component take the actual day date??

    hello evry one >>>
    why requirement date in component ( service order ) dose not take the
    actual day date when we Withdrawn part from stock >>>> how can i make
    the requirement date take the day date automaticly without change it
    from offset field
    for example :
    when i withdrawn apart in (old service order) .. the requirement date
    take the old date or ( the service order date ) and it dosen't tack
    the day date ( day when i withdrawn part )
    please i whant help & thank you . good luck
    .... omar gamar ...

    Wrong forum:
    http://www.microsoft.com

  • Any FM to get count of each week day for the given date range

    Hi guys,
    Any FM to get count of each week day for the given date range?
    eg: If i give 14/07/2008 to 14/08/2008
    I need to find how many Mondays, tuesdays...sundays in this given date range.
    If not single FM is available, any logic that gives above result is also appreciated.
    Thanks,
    Vinod.

    hi Vinod,
    this is not a full solution, I just give you a basic idea:
    DATA : lv_start TYPE sy-datum VALUE '20080714',
           lv_end   TYPE sy-datum VALUE '20080814'.
    WHILE lv_start LE lv_end.
      CALL FUNCTION 'FTR_DAY_GET_TEXT'
        EXPORTING
          pi_date = lv_start.
    * IMPORTING
    *   PE_DAY_TEXT1       =
    *   PE_DAY_TEXT2       =
    *   PE_DAY             =
    * you have to summarize the output here somehow...
      lv_start = lv_start + 1.
    ENDWHILE.
    hope this helps
    ec

  • Using Joda API to display birth date in months, weeks, days

    Hi, I was unable to see a clear sample of the Joda API usage to display a birth day in terms of Months, Weeks, Days.
    Has anyone done so?
    Thanks,
    Say a baby was born on February 2nd 2008, then he is 1 month, 1 week and two days.

    DateTime birthday = new DateTime(2008, 2, 2, 0, 0, 0, 0);
    DateTime now = new DateTime();
    int months = Months.monthsBetween(birthday, now).getMonths();
    now = now.minus(Period.months(months));
    int weeks = Weeks.weeksBetween(birthday, now).getWeeks();
    now = now.minus(Period.weeks(weeks));
    int days = Days.daysBetween(birthday, now).getDays();
    System.out.printf(
              "The person is %d month(s), %d week(s) and %d day(s)\n",
              months,
              weeks,
              days);~

  • IOS 7.0.3 week bug (show right date but wrong week day)

    Hi, when you open calendar (week view) in iOS 7 the day appers right but the week day (monday for example) appers plus one.
    Example: today is 29th (Tuesday), if you open week view the 29th points to Wednesday, wired no?
    Regards,
    Leonardo Bissoli.

    I noticed that on my phone today (4s) and my son's (5s). The Red line indicates the correct time, but the location on the day view of the calendar is incorrect. I've reported this via Apple feedback, maybe you could do the same. www.apple.com/feedback and click on the appropriate link.

  • Power pivot : Can we include week level data filter in timeline?

    Can we include week level data in timeline? the Timeline object takes the date and show always the same 4
    levels(Year, Quarter, Month, Date). What if I want to filter on a week
    level ?
    thanks

    If a week selection is an immediate requirement for you, you could introduce a week name column in your calendar table (YYYY WK ww) and create a slicer based on that.
    All of the built-in time intelligence in DAX and Tabular is week-agnostic in part due to the myriad rules for handling partial weeks at year-end, and year-beginning and in part due to different week-ending days in use. If this reasoning is followed, then
    it may be unlikely that we see a week selection in a timeline.

  • Week End Date calculates dates in table issues

    Greetings All,
    I'm working on a LiveCycle Designer ES4 document that has a Week Ending Date MM-DD-YYYY (which need to always be a Saturday) selected in a subform.
    I need this Week End Date to then calculate and display the selected Saturday and the previous days in a seperate subform with a table. The days need to display in seperate columns below the header.
    This is what I have so far:
      TopmostSubform.Page1.Requestor.WeekEndDate::exit - (FormCalc, client)
    var endDate = Date2Num($,"MM-DD-YYYY")
    var dayOfWeek = Num2Date(endDate, "E")
    if (dayOfWeek <> 7) then
       xfa.host.messageBox("Ending date must be a Saturday")
       $ = null
       xfa.host.setFocus("$")
    endif
    Page1.#subform[1].InputTable.Row1[0].Date7 = Num2Date(endDate - 0, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date6 = Num2Date(endDate - 1, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date5 = Num2Date(endDate - 2, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date4 = Num2Date(endDate - 3, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date3 = Num2Date(endDate - 4, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date2 = Num2Date(endDate - 5, "DD")
    Page1.#subform[1].InputTable.Row1[0].Date1 = Num2Date(endDate - 6, "DD")
    However I keep getting an error on the WeekEndDate when selecting a Saturday.
    Does anyone have any idea what I'm doing wrong?
    Thank you for any help!
    -Michelle

    Well, I never got an answer from the forum here, but to help out others - here is what I did:
    This was all done in FormCalc.
    The object WeekEndDate Date/Time Field has a set pattern date{MM/DD/YYYY} in the Object Field Pattern in LiveCycle.
    BUT, the Scripting required the pattern to be YYYY-MM-DD
    Why? I have no flipping clue. It won't work any other way for me.
    Also this item requires a Saturday Date to be chosen. Days of the week are designated by numbers (Sunday = 1, Monday = 2, etc.)
    The line <>7 means that if the day is not Saturday (7) then the error message "Ending date must be a Saturday" will appear.
    This is the Exit event Script:
    TopmostSubform.Page1.Requestor.WeekEndDate::exit- (FormCalc, client)
    var endDate = Date2Num($,"YYYY-MM-DD")
    var dayOfWeek = Num2Date(endDate, "E")
    if (dayOfWeek <> 7) then
         xfa.host.messageBox("Ending date must be a Saturday")
         $ = null
         xfa.host.setFocus("$")
    endif
    The individual Date cells are set to a Date/Time Field with no pattern set in the Object Field Pattern in LiveCycle.
    The coding below designates a MM/DD pattern.
    Each individual field has it's own scripting, with the appropriate minus calculation  - #
    This is the Calculate script for the Sunday cell:
    TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date1::calculate - (FormCalc, client)
    var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY") - 6
    $.rawValue = num2date(dateNum,"MM/DD")
    And the Saturday cell, that needed to display the Saturday End Date has the following Script, with NO minus number:
    TopmostSubform.Page1.#subform[1].InputTable.Row1[0].Date7::calculate - (FormCalc, client)
    var dateNum = date2num(TopmostSubform.Page1.Requestor.WeekEndDate.formattedValue,"MM/DD/YYYY")
    $.rawValue = num2date(dateNum,"MM/DD")
    Why did I include this all here?
    Because this whole project has been gawd-awful, and hopefully these insights can help another struggle forms designer understand the FormCalc scripting used.
    -M

  • Adding week commencing date automatically on weekly takings spread sheet

    Hi numbers neewbie here
    I've added a week commencing date into the left hand column of a weekly spreadsheet, What I would like to do now is have that date automatically add its self as I extend the spread sheet down. this is a rolling spreadsheet and as I need extra weeks adding I just copy and paste. is this possible? Not sure if this info helps but the line spacing between week to week (Monday to Monday) is 10 lines.

    May you take care to *_read carefully_ ?
    I wrote :
    +Assuming that you start from row 2, use the formula :+
    =IF(MOD(ROW()-2,10)>0,"",DATE(2010,1,IF(MOD(ROW()-2,10)=0,4+(ROW()-2)*0.7,"")))
    +If you start from row 3, use :+
    =IF(MOD(ROW()-3,10)>0,"",DATE(2010,1,IF(MOD(ROW()-3,10)=0,4+(ROW()-3)*0.7,"")))
    *_any brain normally built_*
    would start pasting the formula in the cell A2 or B2 in a blank table and apply fill down to see what it does.
    *_Who asked you to type a date somewhere ?_*
    Only when you are sure that the formula works as it was given, it would be time to try to edit it to fit your exact requirements *_which where not described._* ( You never spoke of row 537 ! )
    In the formula for row 2 is the part :
    IF(MOD(ROW()-2,10)=0,4+(ROW()-2)*0.7,"")
    If we want to have monday 17/05/2010 in row 537, it's clear that the test must be edited so that it matches on row 537.
    This requires it to become :
    IF(MOD(ROW()-537,10)=0,something+(ROW()-537)*0.7,"")
    05/17/2010 is the 137th day in the year.
    It's easy to get this value with :
    =DATEDIF("12/31/2009","05/17/2010","D")
    so, something must be 137 !
    Which give us the edited formula :
    (for Numbers '09)
    =IFERROR(DATE(2010,1,IF(MOD(ROW()-537,10)=0,137+((ROW()-537)*0.7),"")),"")
    which may be shortened as
    =IFERROR(DATE(2010,1,IF(MOD(ROW()-537,10)=0,137+(ROW()-537)*0.7,"")),"")
    (for Numbers '08)
    =IF(MOD(ROW()-537,10)>0,"",DATE(2010,1,IF(MOD(ROW()-537,10)=0,137+(ROW()-537)*0. 7,"")))
    Yvan KOENIG (VALLAURIS, France) jeudi 20 mai 2010 16:21:49

  • Calendar List View Issue - No Month, Week, Day Icons

    I'm trying to setup a Calendar view for a list in SharePoint 2010. Everything is working the way I want, except there are no icons to change the view from Month, Week, or Day. Right now, if someone clicks on a date on the calendar, it switches to the Day
    view. But there is no way for them to go back to the month view.
    I open the page in SharePoint Designer, and in the Design view I can see three icons on the Calendar (Month, Week, Day). But at no time do these icons show up anywhere except the design view.
    I want it to have the arrow buttons, the month and year (which are already displaying) and then the icons to change the view. How do I get them to appear?

    hi,
    i was also facing the same problem but some how i solved this by adding 3 buttons for day,week,month and added javascript. it worked for me
    i placed the buttons just above the webpart content place holder
    u try like that.
    <input name="Week" type="button" value="Week" onclick="Test()"  />
    <input name="Day" type="button" value="Day" onclick="TestDay()"  />
    <input name="Month" type="button" value="Month" onclick="TestMonth()"  />
    At the page end page in designer
     <script type="text/javascript">
    function Test()
    CoreInvoke('MoveView','week');
    function TestDay()
    CoreInvoke('MoveView','day');
    function TestMonth()
    CoreInvoke('MoveView','month');
    </script>

  • Day, date and time in menu bar

    Hello:
    New MacBook and new to Apple computers. I can get day of week and time of day to display, but would also like to have the date displayed. I've followed the directions, but date won't display. When I right click on the day/time, the entire display (Monday, February 11, 2008, for example) is displayed, but grayed-out. Does that mean that my MacBook, with Leopard, can't display day/date/time? Niggling issue, but if anyone has a solution, please respond.
    Thanks,
    medren

    medren wrote:
    Thanks for your suggestions, all of you; I hope I can get to the point where someday I can answer a newbie's question.
    Your welcome. Thanks for the it is appreciated.
    You'll get there. We all started with no points and it was only up from there. I am still learning new stuff here. There are a lot of very knowledgeable people here that are a great help. Welcome aboard.

  • How to get the exact day date with the another date field?

    Hi,
    Please help me how to get the specific day of the week's date with the help of another date field.
    Actually , one field(week_day) has 1,2,3,4,5,6,7 here 1--MON,2-- TUE like that.
    another field has the date. based on that date, we have to go to that particular week and need to pick up the date by the above week_day. It should be in that week itself.
    Thanks in advance!!
    Regards,
    Vissu...
    Edited by: vissu on Oct 29, 2010 3:07 AM

    Hi,
    Something like this
    SELECT TRUNC(<DATE_COLUMN>,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the particular week of the date
    SELECT TRUNC(SYSDATE,'DAY')+<WEEK_NO_COLUMN> FROM <YOUR_TABLE>;for the current week
    cheers
    VT

Maybe you are looking for

  • Function Type Calculate Inventory in BPS SEM 6.0

    Hi, Do anybody have idea about function type Calculate Inventory . We are in SEM 6.0 sp SAPKGS6006.  I'm not getting any documentation on this particulat function type. Please revert if you have any knowledge on this. Thanks Pratyush

  • How to populate my input data into java bean through

    Hi, I have one doubt in swing how many ways we can populate the input properties(data fron gui screen) into my javabean object(Simple POJO) Thanks, Tuku

  • Raw Material Consumption Report

    Dear Forum, The users want to generate the report from the system that would give the item wise details of the Raw Material Cosnumption for the Period selected. How could we generate the same and also the users want to reconcile the same with the GL

  • Problems installing Cocoon 1.8.2 under Weblogic 6.0sp2

    Hi all, In order to install Cocoon 1.8.2, I have created a new WebLogic server for it, listening on port 7003. I have achieved to show the Cocoon.xml test page successfully, but trying the samples the exception page is shown. Any help? Thanks in adva

  • Create transaction code

    Hi all, is it possible to create a transaction code for a report that has no selection screen und no screens (dynpros)? I've tried to create a transaction code for my report by using SE93, but there was no appropriate radio button for a report withou