Date range - CM14 and BI Publisher

I have already asked on a date range. I have a follow-up question. Is it possible to set a range of dates in a form and not a report?

To add the date range in the header of the form/report, you will first need to modify the data model so that you have a floor/ceiling or min/max output value.  This allows to retrieve the records name and which were added after the user enters the prompt.  Technically it does NOT display what the user types in, but rather the first and the last date in the accounts made within the range.

I don't think there is a way to add the dates entered in the prompt on the release of the report.

Then, to add to a form.  I have not tested the guest with forms but thanks to explain what you wanted.  First of all, if you set the prompt for CRITERIA in the form on the Date of receipt of the material, you can test to see if it recovers the correct records.  If the CRITERIA function does not recover on the form, then it is possible that the Oracle only built this based on criteria to work on the reports.  If it works, you must add additional expressions in the data model to retrieve the first and last records to display the 'to' and 'from' dates on the form.

Otherwise, your solution to ask for dates and material_name in the report is the next best thing.

Tags: Oracle Applications

Similar Questions

  • reports / intranet / in detail, the user will enter a date range of and 2 and will be out to put the records in the int

    Hello

    I'm totally green in web development.

    My goal is, to the user will enter a range of dates of and to and will be out to put the records in the intranet when they press a button.

    However, the good news is: I have experience in programming. I wrote in VB desktop applications > NET and I am aware of the RDBMS SQL concepts.
    But CF and WEB development is new to me.

    My current projects involves the DB connection and test it. (it works fine)
    And the output of the reports to an intranet page. (records)

    I need help on how to start this as soon as possible. I'll even do some practice at home.

    Tools, I have to work
    • Development server (test)
    • Place of origin.
    • Toad for db connection.
    • Html reference guide
    • Cf dummies book.

    How can start my projects.
    (e.g. Create cf, outputpage?)
    seriously, I'm new on this.
    Thank you.

    has expired and I lost everything! Thanks for your efforts.
    See. I'm really new to this.
    I wanted to start the practice of home.
    Well, if you find some time

    POP me an email?
    great!
    [email protected]

  • date range crosses / keys of other dates

    I have the table with columns 'HoldDate' and 'Release Date '.
    I want to ask all the records in the table, with my parameters pDateStart and pDateEnd in this way, which
    the date range [pDateStart.. pDateEnd] keys date range "HoldDate" and "Release Date".

    For example:

    Entry:
    pDateStart = the 20.03.2009
    pDateEnd = 23.03.2009

    1 Record1:
    "HoldDate" | "Release date".
    18.03.2009 | 19.03.2009

    This record NOT be returned by query, because the date range [20.03.2009..23.03.2009] do NOT touch / crosses the date range [18.03.2009..19.03.2009].

    2 Record2:
    "HoldDate" | "Release date".
    18.03.2009 | 21.03.2009

    This record will be returned by the query, because the range [18.03.2009..21.03.2009] dates date range [20.03.2009..23.03.2009] touch / intersect.

    What is the best way to write this condition to the query?

    I think it would be slow in the perfomance:

    WHERE the /pDateStart between HoldDate release date
    GOLD pDateEnd between HoldDate OF release date)

    Any thoughts?

    CharlesRoos wrote:
    I have the table with columns 'HoldDate' and 'Release Date '.
    I want to ask all the records in the table, with my parameters pDateStart and pDateEnd in this way, which
    the date range [pDateStart.. pDateEnd] keys date range "HoldDate" and "Release Date".

    What you need is...

    Where pDateEnd >= HoldDate AND pDateStart <= ReleaseDate
    
  • The date of check and complete range column.

    Hi Experts,

    I have a requirement where I have to fill a column CO_OP_PERIOD by writing a procedure. The logic that I need to bulid is,

    If the date range is

    11 January to February 7, 2009 and 2009-P01 (CO_OP_PERIOD column)
    February 8 to March 7, 2009 then 2009-P02 (CO_OP_PERIOD column)
    8 March to 4 April 2009 then 2009-P03 (CO_OP_PERIOD column)
    ....
    ....

    Like wise the beaches of dates between 4 weeks and therefore fill CO_OP_PERIOD. How can I achieve this in a procedure?

    Any help will be much appreciated.

    Thanks for your time.
    G

    Hi Gurusank,

    Try this, not hardcode, limiting only to one year:

    SQL with dates as ( select to_date('01-01-2009', 'dd-mm-yyyy')-1 dt
      2                  ,      level l
      3                  ,      level/28 x
      4                  from   dual
      5                  connect by level <= (trunc(to_date('31-12-2009', 'dd-mm-yyyy')) - trunc(to_date('01-01-2009', 'dd-mm-yyyy'))) +1
      6  )
      7  select l       day_date_id
      8  ,      dt+l    date_name
      9  ,      to_char(dt+1, 'yyyy')||'-P'||to_char(ceil(x),'fm09') co_op_period
     10  from   dates;
    
    DAY_DATE_ID DATE_NAME  CO_OP_PER
    ----------- ---------- ---------
              1 01-01-2009 2009-P01
              2 02-01-2009 2009-P01
              3 03-01-2009 2009-P01
              4 04-01-2009 2009-P01
              5 05-01-2009 2009-P01
              6 06-01-2009 2009-P01
              7 07-01-2009 2009-P01
              8 08-01-2009 2009-P01
              9 09-01-2009 2009-P01
             10 10-01-2009 2009-P01
             11 11-01-2009 2009-P01
             12 12-01-2009 2009-P01
             13 13-01-2009 2009-P01
             14 14-01-2009 2009-P01
             15 15-01-2009 2009-P01
             16 16-01-2009 2009-P01
             17 17-01-2009 2009-P01
             18 18-01-2009 2009-P01
             19 19-01-2009 2009-P01
             20 20-01-2009 2009-P01
             21 21-01-2009 2009-P01
             22 22-01-2009 2009-P01
             23 23-01-2009 2009-P01
             24 24-01-2009 2009-P01
             25 25-01-2009 2009-P01
             26 26-01-2009 2009-P01
             27 27-01-2009 2009-P01
             28 28-01-2009 2009-P01
             29 29-01-2009 2009-P02
             30 30-01-2009 2009-P02
             31 31-01-2009 2009-P02
             32 01-02-2009 2009-P02
             33 02-02-2009 2009-P02
             34 03-02-2009 2009-P02
             35 04-02-2009 2009-P02
             36 05-02-2009 2009-P02
             37 06-02-2009 2009-P02
             38 07-02-2009 2009-P02
             39 08-02-2009 2009-P02
             40 09-02-2009 2009-P02
             41 10-02-2009 2009-P02
             42 11-02-2009 2009-P02
             43 12-02-2009 2009-P02
             44 13-02-2009 2009-P02
             45 14-02-2009 2009-P02
             46 15-02-2009 2009-P02
             47 16-02-2009 2009-P02
             48 17-02-2009 2009-P02
             49 18-02-2009 2009-P02
             50 19-02-2009 2009-P02
             51 20-02-2009 2009-P02
             52 21-02-2009 2009-P02
             53 22-02-2009 2009-P02
             54 23-02-2009 2009-P02
             55 24-02-2009 2009-P02
             56 25-02-2009 2009-P02
             57 26-02-2009 2009-P03
             58 27-02-2009 2009-P03
             59 28-02-2009 2009-P03
             60 01-03-2009 2009-P03
             61 02-03-2009 2009-P03
             62 03-03-2009 2009-P03
             63 04-03-2009 2009-P03
             64 05-03-2009 2009-P03
             65 06-03-2009 2009-P03
             66 07-03-2009 2009-P03
             67 08-03-2009 2009-P03
             68 09-03-2009 2009-P03
             69 10-03-2009 2009-P03
             70 11-03-2009 2009-P03
             71 12-03-2009 2009-P03
             72 13-03-2009 2009-P03
             73 14-03-2009 2009-P03
             74 15-03-2009 2009-P03
             75 16-03-2009 2009-P03
             76 17-03-2009 2009-P03
             77 18-03-2009 2009-P03
             78 19-03-2009 2009-P03
             79 20-03-2009 2009-P03
             80 21-03-2009 2009-P03
             81 22-03-2009 2009-P03
             82 23-03-2009 2009-P03
             83 24-03-2009 2009-P03
             84 25-03-2009 2009-P03
             85 26-03-2009 2009-P04
       ..... etc.
            314 10-11-2009 2009-P12
            315 11-11-2009 2009-P12
            316 12-11-2009 2009-P12
            317 13-11-2009 2009-P12
            318 14-11-2009 2009-P12
            319 15-11-2009 2009-P12
            320 16-11-2009 2009-P12
            321 17-11-2009 2009-P12
            322 18-11-2009 2009-P12
            323 19-11-2009 2009-P12
            324 20-11-2009 2009-P12
            325 21-11-2009 2009-P12
            326 22-11-2009 2009-P12
            327 23-11-2009 2009-P12
            328 24-11-2009 2009-P12
            329 25-11-2009 2009-P12
            330 26-11-2009 2009-P12
            331 27-11-2009 2009-P12
            332 28-11-2009 2009-P12
            333 29-11-2009 2009-P12
            334 30-11-2009 2009-P12
            335 01-12-2009 2009-P12
            336 02-12-2009 2009-P12
            337 03-12-2009 2009-P13
            338 04-12-2009 2009-P13
            339 05-12-2009 2009-P13
            340 06-12-2009 2009-P13
            341 07-12-2009 2009-P13
            342 08-12-2009 2009-P13
            343 09-12-2009 2009-P13
            344 10-12-2009 2009-P13
            345 11-12-2009 2009-P13
            346 12-12-2009 2009-P13
            347 13-12-2009 2009-P13
            348 14-12-2009 2009-P13
            349 15-12-2009 2009-P13
            350 16-12-2009 2009-P13
            351 17-12-2009 2009-P13
            352 18-12-2009 2009-P13
            353 19-12-2009 2009-P13
            354 20-12-2009 2009-P13
            355 21-12-2009 2009-P13
            356 22-12-2009 2009-P13
            357 23-12-2009 2009-P13
            358 24-12-2009 2009-P13
            359 25-12-2009 2009-P13
            360 26-12-2009 2009-P13
            361 27-12-2009 2009-P13
            362 28-12-2009 2009-P13
            363 29-12-2009 2009-P13
            364 30-12-2009 2009-P13
            365 31-12-2009 2009-P14
    
    365 rows selected.
    
  • SUM (case use this structure to get average values on the date range

    I use:

    Oracle SQL Developer (3.0.04) build hand - 04.34 Oracle Database 11 g Enterprise Edition 11.2.0.1.0 - 64 bit Production

    How do we use the function sum with a structure of matter inside.

    so I gave that looks like have an ID, date and value. I'm looking to get the day 7 medium for the date range of 04/01/2013 to 20/04/2013
    with t as (
    select 1 ID_Key,to_date('4/1/2013','mm-dd-yyyy') date_val, 10 Value_num from dual union all
    select 1 ID_key,to_date('4/2/2013','mm-dd-yyyy'), 15 from dual union all
    select 1 ID_key,to_date('4/3/2013','mm-dd-yyyy'), 20 from dual union all
    select 1 ID_key,to_date('4/5/2013','mm-dd-yyyy'), 0 from dual union all
    select 1 ID_key,to_date('4/8/2013','mm-dd-yyyy'), 12 from dual union all
    select 1 ID_key,to_date('4/9/2013','mm-dd-yyyy'), 8 from dual union all
    select 1 ID_key,to_date('4/10/2013','mm-dd-yyyy'), 6 from dual union all
    select 1 ID_key,to_date('4/12/2013','mm-dd-yyyy'), 10 from dual union all
    select 1 ID_key,to_date('4/13/2013','mm-dd-yyyy'), 0 from dual union all
    select 1 ID_key,to_date('4/14/2013','mm-dd-yyyy'), 0 from dual union all
    select 1 ID_key,to_date('4/15/2013','mm-dd-yyyy'), 10 from dual union all
    select 1 ID_key,to_date('4/16/2013','mm-dd-yyyy'), 5 from dual union all
    select 1 ID_key,to_date('4/17/2013','mm-dd-yyyy'), 2 from dual union all
    select 1 ID_key,to_date('4/20/2013','mm-dd-yyyy'), 3 from dual union all
    select 2 ID_key,to_date('4/3/2013','mm-dd-yyyy'), 12 from dual union all
    select 2 ID_key,to_date('4/5/2013','mm-dd-yyyy'), 15 from dual union all
    select 2 ID_key,to_date('4/6/2013','mm-dd-yyyy'), 5 from dual union all
    select 2 ID_key,to_date('4/7/2013','mm-dd-yyyy'), 7 from dual union all
    select 2 ID_key,to_date('4/9/2013','mm-dd-yyyy'), 10 from dual union all
    select 2 ID_key,to_date('4/11/2013','mm-dd-yyyy'), 5 from dual union all
    select 2 ID_key,to_date('4/12/2013','mm-dd-yyyy'), 0 from dual union all
    select 2 ID_key,to_date('4/13/2013','mm-dd-yyyy'), 0 from dual union all
    select 2 ID_key,to_date('4/15/2013','mm-dd-yyyy'), 6 from dual union all
    select 2 ID_key,to_date('4/16/2013','mm-dd-yyyy'), 8 from dual union all
    select 2 ID_key,to_date('4/17/2013','mm-dd-yyyy'), 0 from dual union all
    select 2 ID_key,to_date('4/18/2013','mm-dd-yyyy'), 10 from dual union all
    select 2 ID_key,to_date('4/19/2013','mm-dd-yyyy'), 5 from dual
    )
    * Please let me know if the table does not load.

    I would get the average of 7 days, as long as there is date for the rank of enough previous dates, is it not, then it returns a null value.

    the results should look like this
    ID_Key      date_val     Value_num     7Day_Avg     7Day_Avg2
    1     4/1/2013     10          null          null
    1     4/2/2013     15          null          null
    1     4/3/2013     20          null          null
    1     4/5/2013     0          null          null
    1     4/8/2013     12          6.71          11.75
    1     4/9/2013     8          5.71          10.00
    1     4/10/2013     6          3.71          6.50
    1     4/12/2013     10          5.14          9.00
    1     4/13/2013     0          5.14          7.20
    1     4/14/2013     0          5.14          6.00
    1     4/15/2013     10          4.86          5.67
    1     4/16/2013     5          4.42          5.17
    1     4/17/2013     2          3.85          4.50
    1     4/20/2013     3          2.86          4.00
    2     4/3/2013     12          null          null
    2     4/5/2013     15          null          null
    2     4/6/2013     5          null          null
    2     4/7/2013     7          5.57          9.75
    2     4/9/2013     10          7.00          9.80
    2     4/11/2013     5          6.00          8.40
    2     4/12/2013     0          3.86          5.40
    2     4/13/2013     0          3.14          4.40
    2     4/15/2013     6          3.00          4.20
    2     4/16/2013     8          2.71          3.80
    2     4/17/2013     0          2.71          3.17
    2     4/18/2013     10          3.43          4.00
    2     4/19/2013     5          4.14          4.83
    As you can see, there are gaps in the dates, the value is then processed by zeros for the 7Day_Avg and then ignored for the 7Day_Avg2 (not counted in the number of days on average do to no valu_num line)
    I tried something like this at first, but becomes "missing keyword" error
    select
    t.*/,
    sum(
          case 
            when date_val between :day2 - 6 and :day2
            then value_num between date_val - 6 and date_val
            else null
            end
            )
            as 7Day_avg
    
    form t
    Should I have the structure outside the sum function?

    Any thoughts?

    Published by: 1004407 on June 7, 2013 11:06

    Hello

    If you want to calculate the average of the last 7 days, including the current day, then then RANGE should be 6 PRIOR, not 7.

    Try this:

    WITH got_min_date_val AS

    (

    SELECT id_key, date_val, value_num

    MIN (date_val) compared to (AS min_date_val)

    T

    WHERE the date_val BETWEEN TO_DATE (April 1, 2013 ', "dd-mm-yyyy")

    AND TO_DATE (April 20, 2013 ', "dd-mm-yyyy")

    )

    SELECT id_key, date_val, value_num

    CASE

    WHEN date_val > = min_date_val + 6

    THEN SUM (value_num) OVER (PARTITION BY id_key

    ORDER BY date_val

    PRIOR TO TIER 6

    )

    / 7

    END AS avg_7_day

    CASE

    WHEN date_val > = min_date_val + 6

    THEN AVG (value_num) OVER (PARTITION BY id_key

    ORDER BY date_val

    PRIOR TO TIER 6

    )

    END AS avg_7_day_2

    OF got_min_date_val

    ORDER BY id_key

    date_val

    ;

    Output:

    ID_KEY DATE_VAL VALUE_NUM AVG_7_DAY AVG_7_DAY_2

    ---------- --------- ---------- ---------- ------------

    1 1 APRIL 13 10

    1 2 APRIL 13 15

    1 APRIL 3, 13 20

    1 5 APRIL 13 0

    1 APRIL 8, 13 12 6.71 11.75

    1 APRIL 9, 13 8 5.71 10.00

    1 APRIL 10 13 6 3.71 6.50

    1 12 APRIL 13 10 5.14 9,00

    1 13 APRIL 13 0 5,14 7.20

    1 14 APRIL 13 0 5,14 6.00

    1 15 APRIL 13 10 4.86 5.67

    1 16 APRIL 13 5 4.43 5.17

    1 APRIL 17, 13 2 3.86 4.50

    1 APRIL 20, 13 3 2.86 4.00

    2 APRIL 3, 13 12

    2 5 APRIL 13 15

    2 6 APRIL 13 5

    2 7 APRIL 13 7 5.57 9.75

    2 9 APRIL 13 10 7,00 9.80

    2 11 APRIL 13 5 6.00 8.40

    2 12 APRIL 13 0 3.86 5.40

    2 13 APRIL 13 0 3.14 4.40

    2 15 APRIL 13 6 3.00 4.20

    2 16 APRIL 13 8 2.71 3.80

    2 17 APRIL 13 0 2.71 3.17

    2 18 APRIL 13 10 3.43 4.00

    2 APRIL 19, 13 5 4.14 4,83

    Post edited by: FrankKulash

    Sorry; I wanted to respond to OP, not Greg

  • 14 CM and BI Publisher

    I am currently using 14 CM and BI Publisher for reports. When I create a report, it's all the sentences run back to back, even if I supported on enter between the sentences and spaced them 14 cm.

    Is it possible to format it so that it reflects what is entered in CM14?

    Thanks in advance.

    CM14 example:
    (1) it is the phrase one
    (2) it's hardly two

    Example in the report:
    (1) it is a 2 sentence) it comes to sentence two

    Dear Mac105/944485,

    Please contact the Support for Primavera Oracle client.

    Please note that it is a known problem in 14 contract management and integration with BEEP. Currently there is no workaround solutions.
    This problem is on the side of BI Publisher for which bugs were created previously. I recommend that you contact the Support of BIP team to see if they have no solution possible workaround for this problem.

    Bug 13636140: LOST IN STANDARD FORM OUTPUT DATA FORMATTING.

    Please let me know if you have any other questions.

    Kind regards
    Oracle customer support

  • summarize records by date range

    I have an ambitious project where I need to report a summary report for a date range for each code. I'm not against the use of a helper function plsql to calculate the summary result because I'm not sure it can be done in sql. Any help would be appreciated as my attempts have failed.

    Here is a sample of the data.

    ID START_DATE END_DATE
    445 1 January 2010 Thursday, April 30, 2010 - simultaneous example
    445 1 JANUARY 2010 MAY 31, 2010
    445 17 MAY 2010 AUGUST 6, 2010
    2710 1 May 2010 August 31, 2010 - row example
    2710 01 - SEP - 2010 DECEMBER 31, 2010
    2710 1 JANUARY 2011 APRIL 30, 2011
    2710 1 MAY 2011 AUGUST 31, 2011
    658 1 January 2010 Thursday, April 30, 2010 - simultaneous example
    658 1 JANUARY 2010 MAY 31, 2010
    658 1 JANUARY 2010 MAY 31, 2010
    108 28 December 2009 January 22, 2010 - non-consecutive example
    108, 29 MARCH 2010 APRIL 11, 2010
    108. ON MAY 1, 2010 MAY 31, 2010
    2535 1 March 2010 March 14, 2010 - example 2 consecutive and non-consecutive 1 combination
    2535, MARCH 15, 2010 MARCH 28, 2010
    2535, APRIL 5, 2010 MAY 2, 2010
    999 1 March 2010 March 14, 2010 - example 2 simultaneous and consecutive 1 combination
    999, 1 MARCH 2010 APRIL 24, 2010
    999 APRIL 25, 2010 MAY 2, 2010


    Here is the result summary of what I would be returned as for each ID

    ID START_DATE END_DATE
    445 1 JANUARY 2010 AUGUST 6, 2010
    2710 1 MAY 2010 31 AUGUST 2011
    658 1 JANUARY 2010 MAY 31, 2010
    108. ON MAY 1, 2010 MAY 31, 2010
    2535, APRIL 5, 2010 MAY 2, 2010
    999, MARCH 1, 2010 MAY 2, 2010

    Thank you
    Todd

    Hello

    I see it; you want to look at only the last set of overlapping lines for each id, where the definition of "overlap" is extended such that two rows are expected to overlap if the line later begins between 0 and 24 hours after the end of the previous.

    So what I posted was a bit off; Need to add a WHERE clause to not take into account that the last series of overlapping lines. Which would be to change the FROM clause to use, not the table, but something that indicates whether a line is in the last together or not, and this is the interesting part. We can use analytical functions (I used MIN in the example below) to determine if a game begins with a certain rank, then we can use other analytical functions (such as SUM) to see how many series began, and therefore, what game of any line belongs.

    WITH  got_new_grp     AS
    (
         SELECT     id, start_date, end_date
         ,     CASE
                  WHEN  end_date     < MIN (start_date) OVER ( PARTITION BY  id
                                                             ORDER BY       start_date
                                              ROWS BETWEEN     1        FOLLOWING
                                                   AND     UNBOUNDED  FOLLOWING
                                            ) - 1
                  THEN  1
                  ELSE  0
              END     AS new_grp
         FROM    my_data
    )
    ,     got_grp          AS
    (
         SELECT     id, start_date, end_date
         ,     SUM (new_grp) OVER ( PARTITION BY  id
                                       ORDER BY          start_date     DESC
                           )         AS grp
         FROM     got_new_grp
    )
    SELECT       id
    ,       MIN (start_date)     AS start_date
    ,       MAX (end_date)     AS end_date
    FROM       got_grp
    WHERE       grp     = 0
    GROUP BY  id
    ORDER BY  id
    ;
    

    Output of your sample data:

    .       ID START_DATE  END_DATE
    ---------- ----------- -----------
           108 01-May-2010 31-May-2010
           445 01-Jan-2010 06-Aug-2010
           658 01-Jan-2010 31-May-2010
           999 01-Mar-2010 02-May-2010
          2535 05-Apr-2010 02-May-2010
          2710 01-May-2010 31-Aug-2011
    

    Given that this problem is the last set of rows for each id, I counted sets in order from the last to the first.
    I consider a row of "from" a group if she finished more than 24 hours before all the lines that begin beginning later. Subquery got_new_grp sets new_grp to 1 for these lines. new_grp is 0 for all lines that overlap with a few lines later departure.

    Published by: Frank Kulash, June 11, 2010 12:30

  • date range - user input

    Hello everyone,

    In our report, we would like to the user input date range. Of course, start date and end date for the entries of users. First, we tested with a single number for the entry of the user before the date range.
    COMMAND prompt type the calssID for
    ACCEPT classID NUMBER PROMPTED "Class ID:"
    Select PRJ_REGISTRATIONS. CLASS_ID Prj_registrations
    where PRj_REGISTRATIONS. CLASS_ID = & classID;
    It works, but we message Report Builder in the next report.

    24333 ORA...

    When we did research, lexical parameter, we founded examples of REF CURSOR with several features to use.
    We tried to use our application, but they do not work for us.

    If you have experience, please let us know.

    Thanks in advance,

    NY

    Published by: New Yorker on May 7, 2010 10:43

    Published by: New Yorker on May 7, 2010 10:53

    Try
    and (TABLE.check_out_dt BETWEEN: Enter_Start AND: Enter_End)
    S! G

    PS Mark Correct or help accordingly.

  • How to merge two date ranges

    Hello
    I have the rest of the table. I want to merge the date ranges if dates are continuous and the value is the same. I use Oracle 10 g. Help, please.

    START_DATE END_DATE VALUE
    ----------------------------------------------------------------

    1/1/2008 12/31/2008 1234
    1/1/2009 12/31/2009 1234


    Exit statement SQL must be as follows:


    START_DATE END_DATE VALUE
    ----------------------------------------------------------------

    1/1/2008 12/31/2009 1234



    Thanks in advance.

    Published by: user3898545 on January 27, 2010 19:44

    Hello

    user3898545 wrote:
    Hello
    Dates will not overlap but sometimes start_date can be equal to end_date in a row.

    Sorry, I'm not sure of that figure.
    If the query I posted is not giving correct results, post some samples (CREATE TABLE and INSERT statements are best, but a clause WITH as Tubby displayed is correct) and the correct results, you need these data.

    Please suggest if something needs to be done through pl/sql performance is also the key.

    I don't see how the PL/SQL will help in this problem.

    When two lines need to be combined, the end_date ranked sooner than always exactly 24 hours before the start_date on the line later?
    If so:

    WITH     got_grp         AS
    (
         SELECT     data.*
         ,     end_date - SUM (end_date + 1 - start_date) OVER ( PARTITION BY  val
                                                                     ORDER BY       start_date
                                                ) AS grp
         FROM     data
    )
    SELECT       MIN (start_date)     AS start_date
    ,       MAX (end_date)     AS end_date
    ,       val
    FROM       got_grp
    GROUP BY  val
    ,            grp
    ORDER BY  val
    ,            start_date
    ;
    

    Published by: Frank Kulash, 28 January 2010 14:03
    For example, a subquery added.

  • SQL Scan date range

    User has asked to find all the laid off employee courses who was eligible for benefits in 2008.

    We need extract data from an Oracle table Application HR followed by Date, PER_ALL_ASSIGNEMNTS_F assignment of the employee record that is stored based on the dates of EFFECTIVE_START and EFFECITVE_END.

    It is possible an employee who was eligible for benefit in MARCH-MAY, but is now unacceptable in June-JULY. (That would be 2 folders of assignment with a different range of the effective date of beginning and end).

    We have developed a PL/SQL for analysis of registration of the assignment every day through the 2008. See the code below.

    The question is, how can put us in work even logical (analysis of the registration of the assignment a day) in PL/SQL in SQL?

    Thank you!

    (looks like it's different forum found in metalink, I'm sorry if I posted twice.)


    ============================================================
    (Go GET COMPLETED sea)
    .
    .
    .
    .
    for i_counter in 0... (loop to_date (' 01/01/2008 ',' mm/dd/yyyy') to_date (' 31/12/2008 ',' mm/dd/yyyy'))

    check_date: = to_date (January 1, 2008 "," mm/dd/yyyy "") + i_counter.

    -Validate if the assignment is eligible for benefits using genterated check_date.
    v_found: = 0;
    Select 1
    in v_found
    of per_all_assignments_f
    where check_date between effective_start_date and effective_end_date
    and group_id = 137 - entitled to benefit
    ;

    If v_found = 1 then
    v_eligible_found: = 'YES ';
    "exit";
    end if;

    end loop;

    Published by: user595907 on March 23, 2009 17:10

    Published by: user595907 on March 23, 2009 17:11

    You need not a list of all the days in 2008. Have you checked my last answer?

    SY.

  • To add totals in a certain date range

    I have 3 sheets. Income, expenses and then an annual journal (has twelve columns, one for each month). Is there a way to get the numbers to add totals to a column of the spreadsheet of spending within the date range 01/01/16 and 31/01/16 and put the total in a cell in January on my sheet of each year. I can't understand a formula so that it can find the date range. I get a synyax error message.

    Assumptions:

    Your TABLES (not the leaves) are named income, spending and summary. Here is any other tables in the document with these names.

    Dates of expenditure are in column A of the table expenses. Other than the header line, all the entries in this column are values Date and time that have been entered as dates only.

    The amount for each item of expenditure is in column C of the expense table.

    Line 1 of the analytical table is defined as a header line.

    January is in column A of the summary table.

    Summary::A1 cell contains the date January 1, 2016, but can be formatted to display only the name of the month or the month and year. (but see the note below) *.

    Enter the formula in the cell that will contain total expenditures recorded with dates in January 2016 below:

    = SUMIFS ("Expenses: Expenses, $C: $A," > = "& A1, Expenses: $A," < = "& EOMONTH(A1,0))

    Example: All the amounts of expenditure were reduced to 1.00 simple confirmation of funds.

    * NOTE: The formula has previously worked with the format of the cells in the row 1 Summary defined to show only the month and the year (two digits) of the effective date values (the first day of the month indicated), but the table I built tonight January 1, 2015 to the format to display 16 Jan, one was interpreted as January 16 (2016) , and SUMIFS formula did not include not January 1 to January 14 numbers in January total.

    A custom, displaying the month (short or long) and the year (four digits) or a custom format shows only the name of the month (short or long) gave good results.

    Note that any format under control of the display, the effective date is the first of the month displayed.

    Table built and tested in Numbers ' 09 (v 2.3)

    Kind regards

    Barry

  • Conditional formatting depends on the date ranges

    Basically, I want to be able to enter a date in column A and a sum of money in the B column, depending on where the date in column A grave in a date range, I want the money in column B to copy to a corresponding column. Is this possible? The only questions I found on here deal in a conditional formatting with dates have to do with derivative.

    Thank you

    Julio

    I hope this help to clarify for you...

    It is not bringing conditional formatting.  Formatting conditional would change the format of a cell (or cells)... as the font, color, size, color cell background, or other formatting character is tics of a cell based on the contents of the cell

    You ask about including of the value of a cel another beach under certain conditions

    Here is an example:

    The first three rows are header lines.

    You must enter a valid date for the towing job.  Using the format "mm/dd/yyyy".

    C4 = IF (AND (DATEVALUE (A4) ≥DATEVALUE($B$1), DATEVALUE (A4) ≤DATEVALUE($B$2)), B4, "")

    It's shorthand dethrone select cell C4, and type (or copy and paste it here) the formula:

    = IF (AND (DATEVALUE (A4) ≥DATEVALUE($B$1), DATEVALUE (A4) ≤DATEVALUE($B$2)), B4, "")

    Select the cell C4, copy

    Select cells C4 at the end of the C column, paste

  • The smart Albums based on the date range cause app Crash Photos

    While I'm setting up a new Smart Album based on day of photos between 12/01/2015 and 31/12/2015 the Photos app closes with a crash. Cannot set the second date (the end date for this album). However, I can easily create a new Smart Album for next month (01/01/2016 and 01/31/2016). I create smart Albums, because the new Photos app does not like the old iPhoto does with my Photos from the photo gallery.

    How can I solve this? I don't have an album of December...? !

    You are in an area where the date format is different from the United States?  Earlier this year, we have seen small business issues have reported that rules for smart albums date range do not work with the primary language set to French or German.

    Try to change the primary system language to English with an English date format. Photos could be trying to read the 12/31/2015 as the 12th day of the month 31.

    Or use a different date based on 'before' rule and after.

  • Date range of family security

    Yesterday morning, I was able to select the day I wanted to see, but I checked and noticed an updated with no date range in the afternoon.  I want to keep track of that which is seen day after day, not a week.  Help?

    Hello

    Thanks for posting your query on the Microsoft Community.

    We understand that you want to track Web activity report in parental control
    on a daily basis. However, currently, the family safety activity reports Web can
    show only on a weekly basis.

    If you think that the display of the activity report on the Web on a daily basis is a great
    to have the option, you can submit Microsoft using the link below.
    https://Windows.uservoice.com/forums/265757-Windows-feature-suggestions

    Thank you.

  • HOW CAN I SORT MICROSOFT MONEY BY A DATE RANGE?

    I have Microsoft Money 2007 on my computer and I am trying to sort all of my information by date range. Janrary 2009 - January 2010, how do I do that?

    Hello

    Please repost in the silver forum

    Use this forum to discuss Microsoft Money. This includes money, more and more older versions.

    http://social.Microsoft.com/forums/en/money/threads

Maybe you are looking for

  • Touchpad does not work on my Satellite C75

    In my Satellite C75 manual is written that we can activate the touchpad 19.ne FN + F5but unfortunately this does not work. Thank you for your help

  • Sony HDR - FX7 hood available somewhere?

    Hello I recently bought a second hand HDR - FX7. Unfortunately it didn't come with the sun visor. I have looked around on the internet, but didn't find any. It is always the part available somewhere?

  • I can't send e-mail messages using Windows Mail with Vista.

    Get an error message "connection to server failed..., 10060 socket error, error #0X800CCOE.»  Messages can be sent , however using the ability of web myqwest.com.  Messages can be received with the Windows Mail & myqwest.com.  Windows Mail is the Ver

  • HP HDX 18 produced no.

    Hi, I was wondering if someone could tell me what the difference between 1000,1100 and 1200 Series models and how do I know which one I have. Thank you

  • Controller USB and Ethernet Controller Code 28

    I recently reset my pc and reinstalled windows. However, I have a problem with the USB and Ethernet Controller. They say they have a Code 28, which is a driver not installed. I don't know what to do. I have a Gigabyte motherboard and no internet conn