Generating a list of dates between 2 dates

hi all,
I have a table which looks something like this.
Table_A
(emp_id number,
str_dt date,
end_dt)
Lets suppose the data is as below.
emp_id str_dt end_dt
1 01-may-2006 03-may-2006
2 05-may-2006 12-may-2006
3 06-jun-2006 08-jun-2006
Now i need a query which will pivot this result above into something like given below and also generate the period of dates between str_dt and end_dt.
Example output needed.
emp_id dt
1 01-may-2006
1 02-may-2006
1 03-may-2006
2 05-may-2006
2 06-may-2006
3 06-jun-2006
3 07-jun-2006
Can someone please help me out here? I have tried with different ways, like using rownum from all_objects, etc, but to no avail.
Your export opinion and help would be appreciated.
Thanks in advance
B

Thanks a lot. All well nowEven if the cd's suggestion doesn't work whenever the period is greater than 31 days ?
  1* insert into table_a values (4,'A',to_date('06-jun-2006','dd-mon-yyyy'), to_date('08-aug-2006','dd-mon-yyyy'))
SQL> /
1 row created.
SQL> ed
Wrote file afiedt.buf
  1  SELECT emp_id, new_dt
  2    FROM (SELECT t.emp_id, t.str_dt, t.end_dt, t.str_dt + days.rn - 1 new_dt
  3            FROM table_a t,
  4                 (SELECT ROWNUM rn
  5                    FROM user_objects
  6                   WHERE ROWNUM <= 31) days
  7         )
  8   WHERE new_dt BETWEEN str_dt AND end_dt
9 and emp_id=4
10*  ORDER BY emp_id, new_dt
SQL> /
    EMP_ID NEW_DT
         4 06/06/06
         4 07/06/06
         4 08/06/06
         4 09/06/06
         4 10/06/06
         4 11/06/06
         4 12/06/06
         4 13/06/06
         4 14/06/06
         4 15/06/06
         4 16/06/06
         4 17/06/06
         4 18/06/06
         4 19/06/06
         4 20/06/06
         4 21/06/06
         4 22/06/06
         4 23/06/06
         4 24/06/06
         4 25/06/06
         4 26/06/06
         4 27/06/06
         4 28/06/06
         4 29/06/06
         4 30/06/06
         4 01/07/06
         4 02/07/06
         4 03/07/06
         4 04/07/06
         4 05/07/06
         4 06/07/06
31 rows selected.
SQL> ed
Wrote file afiedt.buf
  1  select a.emp_id, a.l_typ, b.column_value
  2  from   table_a a,
  3         (select column_value from table(period((select min(str_dt) from table_a),(select max(end_dt) from table_a)))) b
  4  where  b.column_value between a.str_dt and a.end_dt
5 and emp_id=4
  6* order by 3
SQL> /
    EMP_ID L COLUMN_V
         4 A 06/06/06
         4 A 07/06/06
         4 A 08/06/06
         4 A 09/06/06
         4 A 10/06/06
         4 A 11/06/06
         4 A 12/06/06
         4 A 13/06/06
         4 A 14/06/06
         4 A 15/06/06
         4 A 16/06/06
         4 A 17/06/06
         4 A 18/06/06
         4 A 19/06/06
         4 A 20/06/06
         4 A 21/06/06
         4 A 22/06/06
         4 A 23/06/06
         4 A 24/06/06
         4 A 25/06/06
         4 A 26/06/06
         4 A 27/06/06
         4 A 28/06/06
         4 A 29/06/06
         4 A 30/06/06
         4 A 01/07/06
         4 A 02/07/06
         4 A 03/07/06
         4 A 04/07/06
         4 A 05/07/06
         4 A 06/07/06
         4 A 07/07/06
         4 A 08/07/06
         4 A 09/07/06
         4 A 10/07/06
         4 A 11/07/06
         4 A 12/07/06
         4 A 13/07/06
         4 A 14/07/06
         4 A 15/07/06
         4 A 16/07/06
         4 A 17/07/06
         4 A 18/07/06
         4 A 19/07/06
         4 A 20/07/06
         4 A 21/07/06
         4 A 22/07/06
         4 A 23/07/06
         4 A 24/07/06
         4 A 25/07/06
         4 A 26/07/06
         4 A 27/07/06
         4 A 28/07/06
         4 A 29/07/06
         4 A 30/07/06
         4 A 31/07/06
         4 A 01/08/06
         4 A 02/08/06
         4 A 03/08/06
         4 A 04/08/06
         4 A 05/08/06
         4 A 06/08/06
         4 A 07/08/06
         4 A 08/08/06
64 rows selected.
SQL> Nicolas.

Similar Messages

  • Getting a list of dates between 2 dates

    Hi All,
    Is there a way I can generate a list of date using a simple SELECT statement to generate all dates between to date points? For example between SYSDATE AND SYSDATE-7?
    One way I know is have a table and run PL/SQL script to put all dates in it and query that but was wondering if it can be achieve via SQL SELECT query at all without creating a table (querying DUAL).
    Cheers.
    Using Oracle XE 11GR2

    Arc_x wrote:
    If I wanted to make both days Inclusive how would I achieve that?Maybe: NOT TESTED!
    select to_date(:start_date,'yyyymmdd') + level - 1 generated_date
      from dual
    connect by level <= to_date(:end_date,'yyyymmdd') - to_date(:start_date,'yyyymmdd') + 1Regards
    Etbin

  • SQL Generate full calendar list of dates

    I'm trying to generate a list of dates given the current date. For example, for today, March 10, I want the dates from March to be listed. This is for a Calendar application and because of that I need to fill out the calendar with pre and post days. For example, for March, the following dates would need to be included:
    02/17/2011
    02/28/2011
    All the dates in March...AND
    04/01/2011
    04/02/2011
    If you look on a Calendar, it usually starts on a Sunday...depending on where you are. I need all dates returned to account for the extra days before and after the month in question. Do that make sense?
    Any help is greatly appreciated.
    This is what I would like to see:
    Order     DateValue     WeekDay     Day     Month
    1     02/27/2011     1     27     2
    2     02/28/2011     2     28     2
    3     03/01/2011     3     1     3
    4     03/02/2011     4     2     3
    5     03/03/2011     5     3     3
    6     03/04/2011     6     4     3
    7     03/05/2011     7     5     3
    8     03/06/2011     1     6     3
    9     03/07/2011     2     7     3
    10     03/08/2011     3     8     3
    11     03/09/2011     4     9     3
    12     03/10/2011     5     10     3
    13     03/11/2011     6     11     3
    14     03/12/2011     7     12     3
    15     03/13/2011     1     13     3
    16     03/14/2011     2     14     3
    17     03/15/2011     3     15     3
    18     03/16/2011     4     16     3
    19     03/17/2011     5     17     3
    20     03/18/2011     6     18     3
    21     03/19/2011     7     19     3
    22     03/20/2011     1     20     3
    23     03/21/2011     2     21     3
    24     03/22/2011     3     22     3
    25     03/23/2011     4     23     3
    26     03/24/2011     5     24     3
    27     03/25/2011     6     25     3
    28     03/26/2011     7     26     3
    29     03/27/2011     1     27     3
    30     03/28/2011     2     28     3
    31     03/29/2011     3     29     3
    32     03/30/2011     4     30     3
    33     03/31/2011     5     31     3
    34     04/01/2011     6     1     4
    35     04/02/2011     7     2     4

    The problem with your query is that you're not taking account of the week number correctly. For example in 2012 there's a tricky part where it can actually be considered that the calender runs over 54 different weeks...
    SQL> break on month skip 1
    SQL> set linesize 200
    SQL> set pagesize 2000
    SQL> column month format a20
    SQL> column week format a4
    SQL> with req as (select '&Required_Year_YYYY' as yr from dual)
      2      ,offset as (select case when to_char(trunc(to_date(yr,'YYYY'),'YYYY'),'IW') in ('52','53') then 1 else 0 end as offset from req)
      3  select lpad( Month, 20-(20-length(month))/2 ) month,
      4         '('||week||')' as week, "Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"
      5  from (
      6    select to_char(dt,'fmMonth YYYY') month,
      7    case when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 0 then '53'
      8         when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 1 then '54'
      9         when to_char(dt, 'mm') = '01' and to_char(dt,'iw') in ('52','53') then '1'
    10         else to_char(to_number(to_char(dt,'iw'))+offset) end as week,
    11    max(decode(to_char(dt,'d'),'1',lpad(to_char(dt,'fmdd'),2))) "Mo",
    12    max(decode(to_char(dt,'d'),'2',lpad(to_char(dt,'fmdd'),2))) "Tu",
    13    max(decode(to_char(dt,'d'),'3',lpad(to_char(dt,'fmdd'),2))) "We",
    14    max(decode(to_char(dt,'d'),'4',lpad(to_char(dt,'fmdd'),2))) "Th",
    15    max(decode(to_char(dt,'d'),'5',lpad(to_char(dt,'fmdd'),2))) "Fr",
    16    max(decode(to_char(dt,'d'),'6',lpad(to_char(dt,'fmdd'),2))) "Sa",
    17    max(decode(to_char(dt,'d'),'7',lpad(to_char(dt,'fmdd'),2))) "Su"
    18    from ( select trunc(to_date(req.yr,'YYYY'),'y')-1+rownum dt
    19           from all_objects, req
    20           where rownum <= add_months(trunc(to_date(req.yr,'YYYY'),'y'),12) - trunc(to_date(req.yr,'YYYY'),'y') )
    21        ,offset
    22    group by to_char(dt,'fmMonth YYYY'),     case when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 0 then '53'
    23                                                  when to_char(dt, 'mm') = '12' and to_char(dt,'iw') = '01' and offset = 1 then '54'
    24                                                  when to_char(dt, 'mm') = '01' and to_char(dt,'iw') in ('52','53') then '1'
    25                                                  else to_char(to_number(to_char(dt,'iw'))+offset) end
    26    ) x
    27  order by to_date( month, 'Month YYYY' ), to_number(x.week)
    28  /
    Enter value for required_year_yyyy: 2012
    old   1: with req as (select '&Required_Year_YYYY' as yr from dual)
    new   1: with req as (select '2012' as yr from dual)
    MONTH                WEEK Mo Tu We Th Fr Sa Su
        January 2012     (1)                     1
                         (2)   2  3  4  5  6  7  8
                         (3)   9 10 11 12 13 14 15
                         (4)  16 17 18 19 20 21 22
                         (5)  23 24 25 26 27 28 29
                         (6)  30 31
       February 2012     (6)         1  2  3  4  5
                         (7)   6  7  8  9 10 11 12
                         (8)  13 14 15 16 17 18 19
                         (9)  20 21 22 23 24 25 26
                         (10) 27 28 29
         March 2012      (10)           1  2  3  4
                         (11)  5  6  7  8  9 10 11
                         (12) 12 13 14 15 16 17 18
                         (13) 19 20 21 22 23 24 25
                         (14) 26 27 28 29 30 31
         April 2012      (14)                    1
                         (15)  2  3  4  5  6  7  8
                         (16)  9 10 11 12 13 14 15
                         (17) 16 17 18 19 20 21 22
                         (18) 23 24 25 26 27 28 29
                         (19) 30
          May 2012       (19)     1  2  3  4  5  6
                         (20)  7  8  9 10 11 12 13
                         (21) 14 15 16 17 18 19 20
                         (22) 21 22 23 24 25 26 27
                         (23) 28 29 30 31
         June 2012       (23)              1  2  3
                         (24)  4  5  6  7  8  9 10
                         (25) 11 12 13 14 15 16 17
                         (26) 18 19 20 21 22 23 24
                         (27) 25 26 27 28 29 30
         July 2012       (27)                    1
                         (28)  2  3  4  5  6  7  8
                         (29)  9 10 11 12 13 14 15
                         (30) 16 17 18 19 20 21 22
                         (31) 23 24 25 26 27 28 29
                         (32) 30 31
        August 2012      (32)        1  2  3  4  5
                         (33)  6  7  8  9 10 11 12
                         (34) 13 14 15 16 17 18 19
                         (35) 20 21 22 23 24 25 26
                         (36) 27 28 29 30 31
       September 2012    (36)                 1  2
                         (37)  3  4  5  6  7  8  9
                         (38) 10 11 12 13 14 15 16
                         (39) 17 18 19 20 21 22 23
                         (40) 24 25 26 27 28 29 30
        October 2012     (41)  1  2  3  4  5  6  7
                         (42)  8  9 10 11 12 13 14
                         (43) 15 16 17 18 19 20 21
                         (44) 22 23 24 25 26 27 28
                         (45) 29 30 31
       November 2012     (45)           1  2  3  4
                         (46)  5  6  7  8  9 10 11
                         (47) 12 13 14 15 16 17 18
                         (48) 19 20 21 22 23 24 25
                         (49) 26 27 28 29 30
       December 2012     (49)                 1  2
                         (50)  3  4  5  6  7  8  9
                         (51) 10 11 12 13 14 15 16
                         (52) 17 18 19 20 21 22 23
                         (53) 24 25 26 27 28 29 30
                         (54) 31
    64 rows selected.
    SQL>

  • Need Help on List of Months between Two Dates

    Hello everyone,
    I have a table which has startdate & enddate, and need a SELECT statement to list all months between these two dates for each given ID.
    I did some test, and could not figure out how to get the startdate & enddate from testing table (instead of hard code them) in the select statement.
    Could anybody please help on it (Oracle 11gR2),
    Thanks in advance!!!
    create table testing(
    id          number,
    start_date  date,
    end_date    date);
    insert into testing values(100, to_date('05-FEB-2011', 'DD-MON-YYYY'), to_date('28-MAY-2011', 'DD-MON-YYYY'));
    insert into testing values(200, to_date('20-JUN-2011', 'DD-MON-YYYY'), to_date('28-DEC-2011', 'DD-MON-YYYY'));
    commit;
    select * from testing;
            ID START_DAT END_DATE
           100 05-FEB-11 28-MAY-11
           200 20-JUN-11 28-DEC-11
    Elapsed: 00:00:00.01
    *for testing.id = 100:*
    select to_char(add_months(to_date('05-FEB-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
    from (select level l
           from dual
        connect by level <= months_between(trunc(to_date('28-MAY-2011', 'DD-MON-YYYY'), 'MONTH'),
                                           trunc(to_date('05-FEB-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
    DATES
    2011-Feb
    2011-Mar
    2011-Apr
    2011-May
    Elapsed: 00:00:00.01
    *for testing.id = 200:*
    select to_char(add_months(to_date('20-JUN-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
    from (select level l
           from dual
        connect by level <= months_between(trunc(to_date('28-DEC-2011', 'DD-MON-YYYY'), 'MONTH'),
                                           trunc(to_date('20-JUN-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
    DATES
    2011-Jun
    2011-Jul
    2011-Aug
    2011-Sep
    2011-Oct
    2011-Nov
    2011-Dec
    7 rows selected.

    SQL> select * from testing
      2  /
            ID START_DAT END_DATE
           100 05-FEB-11 28-MAY-11
           200 20-JUN-11 28-DEC-11
    SQL> select  id,
      2          to_char(add_months(start_date,column_value - 1),'YYYY-Mon') dates
      3    from  testing,
      4          table(
      5                cast(
      6                     multiset(
      7                              select  level
      8                                from  dual
      9                                connect by add_months(trunc(start_date,'MM'),level - 1) <= end_date
    10                             )
    11                     as sys.OdciNumberList
    12                    )
    13               )
    14    order by id,
    15             column_value
    16  /
            ID DATES
           100 2011-Feb
           100 2011-Mar
           100 2011-Apr
           100 2011-May
           200 2011-Jun
           200 2011-Jul
           200 2011-Aug
           200 2011-Sep
           200 2011-Oct
           200 2011-Nov
           200 2011-Dec
    11 rows selected.
    SQL> SY.

  • Require the list of dates exist between dates

    in 10g database i can execute the below query
    Iam having a table sdate
    pk     startdate     enddate     des1
    1     1/1/2010     1/3/2010     xxxxxxxxc
    2     1/5/2010     1/20/2010     abc
    i need list of dates between startdate and enddate, so i created this query
    SELECT DISTINCT d, des1
    FROM (SELECT pk, s.startdate + LEVEL - 1 d, des1
    FROM sdate s
    CONNECT BY LEVEL <= (SELECT enddate - startdate + 1 FROM sdate y WHERE s.pk = y.pk))
    ORDER BY d, des1
    but in 9i database if i execute the same above query iam getting
    ORA-01473: cannot have subqueries in CONNECT BY clause
    **is there any other way to view list of dates for the given range of date**

    SQL>WITH sdate AS
      2       (
      3          SELECT 1 AS pk, DATE '2010-1-1' AS startdate, DATE '2010-1-3' AS enddate, 'xxxxxxxxxxxcxx' AS des1
      4            FROM DUAL
      5          UNION ALL
      6          SELECT 2 AS pk, DATE '2010-1-5', DATE '2010-1-20', 'abx' AS des1
      7            FROM DUAL)
      8  SELECT startdate + d - 1, des1
      9    FROM (SELECT     ROWNUM AS d
    10                FROM (SELECT MAX(enddate - startdate) + 1 AS maxrange
    11                        FROM sdate)
    12          CONNECT BY LEVEL <= maxrange),
    13         sdate
    14   WHERE d <= enddate - startdate + 1;
    STARTDAT DES1
    01.01.10 xxxxxxxxxxxcxx
    02.01.10 xxxxxxxxxxxcxx
    03.01.10 xxxxxxxxxxxcxx
    05.01.10 abx
    06.01.10 abx
    07.01.10 abx
    08.01.10 abx
    09.01.10 abx
    10.01.10 abx
    11.01.10 abx
    12.01.10 abx
    13.01.10 abx
    14.01.10 abx
    15.01.10 abx
    16.01.10 abx
    17.01.10 abx
    18.01.10 abx
    19.01.10 abx
    20.01.10 abx
    19 rows selected.
    Elapsed: 00:00:00.07Urs
    Edited by: metzguar on 09.07.2010 14:36

  • How to generate a list of  pick dates for all scheduled deliveries?

    Hi!
      How to generate a list of  pick dates for all scheduled deliveries?
      What all the tables involved?
    Thanks
    Imran.

    Thanks for the suggestion concerning the file path.  And certainly it would have been nice to have done this before beginning.  However this is a project that has been around for quite a while, and the files have been moved into different bins.  And now the project sequence is being revised.
    So the problem is, worded slightly differently, how can I search all of the bins for the files that are used just by this sequence, ignoring the files which are used by other sequences?  Or, how can I get a list of the file paths of the files that are used in the sequence?

  • Source List validity dates for MRP only

    Hi.
    Is there a way to do the following:
    Set purchasing view "source list required" so that the material must be purchased from ANY of the sources on the source list...  AND...
    Setup the source list so that there are no overlaps, and MRP sources from consecutive contracts based on the source list validity dates.
    For example, 1/1/10 to 5/1/10 -> Contract A (mrp relevant);  5/2/10-10/1/10 -> Contract B (mrp relevant).  But on 5/3/10 I want to be able to manually change the requisition away from "B" and release against Contract A.  In other words, I want MRP to get the sourcing close to correct, but allow the user the ability to override the MRP sourcing, AND still ensure that the source the user picks is on the source list somewhere.
    When I try this now, the system generates "Source list not included in list despite source list requirement."  The source list checking seems to be done all the way at the validity period level.

    hi,
    I understood your concept. Please explain it  clearly so that why this message
    is appearing " Source list not included in list despite source list requirement"
    can be found out
    Regards
    G.Ganesh Kumar

  • Problem with running example 'Generating Live Audio/Video Data'

    Hello,
    Concerning the example 'Generating Live Audio/Video Data', I'm having trouble with the run instructions.
    http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html
    How does JMFRegistry know about the location of jmfsample?
    How is 'live' resolved as a URL?
    2.Register the package prefix for the new data source using JMFRegistry
    - Run JMFRegistry
    - In the Protocol Prefix List section add "jmfsample" and hit Commit.
    4.Select File->Open URL and enter "live:"
    Much thanks,
    Ben

    I'm getting the following error message: "Could not create player for live"Implies you've either not registered the "live:" protocol prefix in the JMF Registry, or, it couldn't load the class you registered for it...or it might be erroring out inside the actual live protocol, I'm not sure what that would look like, but a System.err.println statement in the constructor of both of those classes might be a good idea.
    I added the output of javac (DataSource.class and LiveStream.class) to a directory on the classpath.
    C:\Program Files\JMF2.1.1e\lib\jmfsample\media\protocol\liveEh, that looks a little questionable to me. I'm not 100% sure that the JRE will automaticlly descend into the package subdirectories like that, looking for classfiles, for every folder on the path. I am, of course, fully open to the idea that it does and I just never thought about it...but I guess I just thought it only did that for JAR files, not CLASS files. Regardless, I'd recommend:
    1) Make sure you've registered the protocol prefix "live:" correctly in JMF Registry
    2) Try to run it with the 2 compiled class files in the same folder as your project
    3) Try to run it with the 2 compiled class files in the lib directory, if that's on the classpath
    4) Try to run it with the 2 compiled class files installed in the JRE as an extension (google for how to do this because I don't remember off the top of my head)
    5) Reinstall JMF and see if that helps

  • Last day from the list of dates

    i have a query which give me list of dates. From these list of date i want to find the last day in all months. when i am using last day fucntion i am getting last day from the sysdate and not from the list of dates generated by my query.
    the query
    (select distinct to_date(substr(batch_id,1,6),'DDMMRR') batch_id from gcon_mst_v0)
    order by batch_id desc
    i want last day from each month from the list of dates listed from the query.
    Help would be higly appriciated
    Thanks in advance

    The column is a varchar but i am convering it to get
    the list od dates as you can see in the query. i want
    all the last dates of every month from that list of
    dates for eg. below is the list of the dates i am
    getting from the query.
    7/11/2007
    7/10/2007
    7/9/2007
    7/8/2007
    7/6/2007
    7/5/2007
    7/4/2007
    7/3/2007
    7/2/2007
    7/1/2007
    6/29/2007
    6/28/2007
    6/27/2007
    6/26/2007
    6/25/2007
    6/24/2007
    6/22/2007
    6/21/2007
    6/20/2007
    6/19/2007
    6/18/2007
    6/17/2007
    6/15/2007
    6/14/2007
    6/13/2007
    6/12/2007
    6/11/2007
    6/10/2007
    6/8/2007
    6/7/2007
    6/6/2007
    6/5/2007
    6/4/2007
    6/3/2007
    6/1/2007
    5/31/2007
    5/30/2007
    5/29/2007
    5/28/2007
    5/27/2007
    5/25/2007
    5/24/2007
    5/23/2007
    5/22/2007
    5/21/2007
    5/20/2007
    5/18/2007
    5/17/2007
    5/16/2007
    5/15/2007
    5/14/2007
    5/13/2007
    5/11/2007
    5/10/2007
    5/9/2007
    5/8/2007
    5/7/2007
    5/6/2007
    5/4/2007
    5/3/2007
    5/2/2007
    5/1/2007
    4/30/2007
    4/29/2007
    4/27/2007
    4/26/2007
    4/25/2007
    4/24/2007
    4/23/2007
    4/22/2007
    4/20/2007
    4/19/2007
    4/18/2007
    4/17/2007
    4/16/2007
    4/15/2007
    4/14/2007
    4/12/2007
    4/11/2007
    4/10/2007
    4/9/2007
    4/8/2007
    4/6/2007
    4/5/2007
    4/4/2007
    4/3/2007
    4/2/2007
    4/1/2007
    3/30/2007
    3/29/2007
    3/28/2007
    3/27/2007
    3/26/2007
    i want the last date for all the months listed. that
    would be
    6/29/2007 -- last day for june
    5/31/2007-- last day for may
    4/30/2007-- last day for april
    3/30/2007-- last day for march and so on
    thankswrite query as
    SELECT LAST_DAY(TO_DATE(SUBSTR(COLUMN_NAME,X),'MM/DD/YYYY'))
    FROM TABLE_NAME

  • SharePoint 2013 List - Multiple Data Types in the Same List

    In the same SharePoint 2013 list in Data Sheet View, I want to have one column where my end users enter inputs for KPIs. There are 3 groups of KPIs (A, B and C) and they each have different data types (A-string, B-decimal, C-percentage) and I want to be
    able to base their input options off of the KPI type
    Does anyone have any suggestions on how I can leverage my parent-child relationships so when an end user...
    1. Picks KPI type A, they can select from a choice filed (Green, Yellow, Red)
    2. Picks KPI Type B, they can enter a decimal (-1.000 to 2.000)
    3. Picks KPI Type C, they can enter a percentage (-100.00% to 100.00%
    I'm using if I want to keep this in one list, one column and in data sheet view that the out of the box solutions won't meet my requirements. I was looking at some solutions from Bamboo (Lookup Selector Column) but don't think that applies here.
    Thanks!
    Johnny

    Hi Johnny, you can accomplish this using cascading lookups in InfoPath if that program is available to you. Otherwise, if you want a 3rd party product, we use the Kwiz cascading lookup and it's worked wonders for us:
    http://www.kwizcom.com/sharepoint-add-ons/sharepoint-cascading-lookup-plus/overview/
    Note: I have no relationship with Kwiz, just vouching for the product.
    cameron rautmann

  • How to filter the list of data

    I am using af:inputComboboxListOfValues to display drop down list of data. The list is binded to a LOV.
    I have a requirement that if the value is used in other place, I should not get it listed on the drop down list. I research doc that it let me use "launchPopupListener" to filter the list of data. As a test code, I coded like this:
    public void launchListener(LaunchPopupEvent launchPopupEvent) {
    // Add event code here...
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("PersonVO1Iterator");
    dcItteratorBindings.getViewObject().setWhereClause("PersonEO.FIRST_NAME <> 'John'");
    dcItteratorBindings.getViewObject().executeQuery();
    But it does not work. It seems that 'John' is removed from VO but doesn't removed from UI combo box drop down list.
    What can I do to fix it?
    JDev Version 11.1.1.6.0
    Thanks.
    帖子经 954727编辑过

    Morris Li,
    Welcome to the ADF Forum. Have you looked into whether the PartialTriggers for the ui combo box have been set.
    This article may also assist: "Building model driven dependent list with Oracle ADF BC"
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/march2011-otn-harvest-351896.pdf
    and this http://docs.oracle.com/cd/E16764_01/web.1111/b31973/af_ppr.htm#BGBIIDBF
    Stuart

  • How to generate XML from relational data : PL/SQL or Java

    I'm new to Oracle XML and would appreciate some advice. I've been asked to generate XML documents from data stored in relational tables. The XML documents must be validated against a DTD. We will probably want to store the XML in the database.
    I've seen a PL/SQL based approach as follows :
    1.Mimic the structure of the DTD using SQL object types 2.Assign the relational data to the object type using PL/SQL as required
    3.Use the SYS_XMLGEN package to render the required XML documents from the SQL objects
    However, creating the object types seems to be quite time consuming (step 1 above) for anything other than the simplest of XML documents.
    I've also seen that there is the Java based approach, namely :
    1. Use the XML generator to build Java classes based on a DTD.
    2. Use these classes to build the required XML
    On the face of it, the Java based approach seems simpler. However, I'm not that familiar with Java.
    Which is the best way to proceed ? Is the PL/SQL based approach worth pursuing or should I bite the bullet and brush up my Java ?
    Is it possible to use a combination of PL/SQL and Java to populate the dtd generated java classes (step 2 of the Java approach) to reduce my learning curve ?
    Thanks in advance

    To help answer your questions:
    1) Now, in 9iR2, you can use SQL/XML as another choice.
    2) You can also use XSU to generate the XML and use XSLT to transform it to a desired format instead of using object views if possible.
    3) XDK provide Class generator support to populate XML data to Java classes.

  • Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013

    Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013 
    Newform.aspx of list:-
    Custom List is not saving data sometimes in the new form after 15 minutes and only blank entry record got created without saving data, even though some columns are mandatory fields?

    Hello dcakumar,
    Sounds like a strang issue. If you can reproduce this can you see some errors in the ULS logs?
    - Dennis | Netherlands | Blog |
    Twitter

  • How to declare a list of dates

    Hi,
    I have an item which type is "Display as text based on LOV". I put in the source section under the type "Pl/SQL function body" the following pl/sql function :
    DECLARE
    X VARCHAR2 (4000);
    Y DATE ;
    BEGIN
    X := 'SELECT distinct(TO_CHAR(DATE1, ''YYYY'')) d, (TO_CHAR(DATE1, ''YYYY'')) r FROM SIVOA.EVV_'|| :p4_site ||' WHERE CLEF_VAR = (SELECT CLEF_VAR FROM SIVOA.SITE_DEBIT_RIVIERE WHERE SITE ='''|| :p4_site ||''')
    order by d';
    EXECUTE IMMEDIATE X INTO Y;
    RETURN Y ;
    END;The problem is that I get an ORA error.
    ORA-00932: types de données incohérents ; attendu : - ; obtenu : -
    I know that I have declared Y as a date and that what is returned by my function is a list of dates. I don't know how to declare a list of dates or whatever to be returned as a lis of values. Hope I am clear, sorry for my english.
    Thank you for your kind help.
    Christian

    Hi Tony
    You hare very patient with me thank you !!!
    Let me clarify well.
    I am trying to create a list of values based on dates contained in a table. This list of values should contains the "years". If the table contains data for the years 2005, 2006, 2007, then the list of value should return :
    2006
    2007
    2008
    As I want a list of value I need to have a display and a return value. The name of the table is 'dynamic' It is the item P4_SITE that contains a part of the name of the table. This is why I am usins PL/SQL, because I don't know the name of the table in advance.
    I have not seen any way to put a pl/sql statement in the List of values definition of the item. Thi s is why I try to make a LOV with the SOURCE of the item.
    Hope I am clear.

  • Unable to generate output. No data found in PRM

    Hi all,
    I am not able to see CPU Utilization and overall CPU Utilization report in PRM eventhough I have loaded Kernel reader (simple) module. System is running over 48 hours. There should be data for these reports.
    But it keep prompting me following error message:
    Unable to generate output. No data foundWhat can I check next in order to show the these report? Please help.

    hi
    dear u commit after inserting data or not do commit then check
    Rizwan
    www.rizwanshafiq.blogspot.com

Maybe you are looking for

  • HOW CAN I HAVE TWO MONITORS ON R6870 HAWK?

    hi all ... i just bought a 6870 hawk card and have 2 monitors a wide 22" and a 4:3 19" with d-sub connections ... up to now i had them connected to an ati 4890 through d-sub to dvi adaptors no problems ..... and now as i understand it i cannot use th

  • Help:Problem Of flickering!

    I have a flickering problem with my new iPad 4. there is a solution to solve this problem? flickering occurs during the download of multiple applications on the Apple Store. thanks for your help, Simon.

  • Cannot import metadata error

    I am receiving the following error when trying to import a new table from and existing datastore. Can anyone point me in the right direction fro troubleshooting this error? We are using Data Service 4.0.

  • Using my Plantronics 340 Bluetooth headset as a pc VOIP headset.

    I am trying to use my plantronics bluetooth headset with my computer, as a microphone/earphone combination, with the popular gaming VOIP software Teamspeak. I have a notebook from an other manufacture running XP SP3. My Bluetooth stack is a Toshiba o

  • Help me choose the right black for a background (white text on black BG)!

    Hi all! I am polishing an InDesign document for a magazine. The cover will contain a big black surface with white texts on top (alongside a white surface with black texts/graphics on top and there is also a color bar on top of the black surface.) I w