Number of the aid range

Oracle 11.2.0.1

create table test (col1 varchar2 (3), col2 varchar2 (4));

insert into test ('201 ', ' 1234') values;

insert into test ('201 ', ' 1235') values;

insert into test ('201 ', ' 1236') values;

insert into test ('201 ', ' 1240') values;

insert into test ('201 ', ' 1241') values;

insert into test ('201 ', ' 1250') values;

insert into test ('202 ', ' 1251') values;

insert into test ('202 ', ' 1252') values;

insert into test ('202 ', ' 1253') values;

insert into test ('202 ', ' 1254') values;

insert into test ('203 ', ' 1255') values;

insert into test ('204 ', ' 1256') values;

insert into test values ("204", "1257 ');

insert into test ("204", "1258") values;

Power required:

col1 start end total

201 1234 1236 3 <-because the numbers are of 1234-1236

201, 1240, 1241, 2 <- then from 1240 to 1241

201 1250 1250 1 <-one number for the same value of col1

202 1251 1254 4 <-same as above.

203 1255 1255 1

204 1256 and 1258 3

As indicated above required output, I see numbers continue as starting point at the end of column for the value of col1.  If there is no gap or a single value, it should come in another line.  Kindly help me.

Hello

This is a classic method of Tabibitosan: Tabibitosan tutorial Aketi Jyuuzou method

SQL> with got_grp as
  2  (
  3  select col1
  4        , col2
  5        , row_number() over (partition by col1 order by col2)
  6          - col2 as grp
  7    from test
  8  )
  9  select col1, min(col2) col2_start, max(col2) col2_end, count(*) total
 10    from got_grp
 11   group by col1, grp
 12   order by col1, col2_start;

COL COL2 COL2      TOTAL
--- ---- ---- ----------
201 1234 1236          3
201 1240 1241          2
201 1250 1250          1
202 1251 1254          4
203 1255 1255          1
204 1256 1258          3                                                        

6 rows selected.

SQL>

Kind regards.

Alberto

Tags: Database

Similar Questions

  • Number of the aid format

    I have a digital control that is auto-in the form of numbers and it does it in a way that interferes with a driver I have.  The digital properties window is shown below, it is in double format.  The problem is that it adds 6 zeros after the decimal point, and if I get a vale 2-digit (or 20) I get 20.000000, which is 1 number too long for my camera to understand.  It cannot be the entire format because there are moments where I need to non-integer values, but I need to make sure if the number is 2 digits, there are a maximum of 5 zeros, or if the number is 3 digits, 4 zeros, etc, (the integer cannot be more than 7 digits with a decimal point).

    I tried to play with the number of 'Figures', but also with figures of precision instead of significant digits, and that doesn't seem to help.  No matter what I set it to, it sends still 6 zeros after the decimal place.

    Try ' % #7f "as the string formatting-, which will limit the string to seven digits.

  • AF:inputRangeSlider launches the number is outside the valid range.

    Hi all

    I'm trying to implement af:inputRangeSlider for dates.

    I'm following https://blogs.oracle.com/groundside/entry/using_inputnumberslider_for_dates to achieve


    everything works fine except when I drag the range for the date, he throws me start number is outside the valid range, as in the thread


    Re: Help for problem of Dates inputRangeSlider


    but it is difficult to encode the value of long type there... in my case must change dynamically



    Please help me on this


    Jdev version: 11.1.1.6.0



    Thank you and best regards,

    Shakir



    Hi Daniel,.

    Thanks for the reply,

    discovered the difficulty, rather than use the calendar to get the date in milliseconds

    used java.util.Date api

    but don't know why using calendar for the date in milliseconds the origin of the problem

    Instead

    Calendar prevYear = Calendar.GetInstance ();

    prevYear.set (Integer.parseInt("2010"), Calendar.JANUARY, 01);

    System.out.println ("date in milli seconds:" + prevYear.getTimeInMillis ());

    I used

    Date = new Date();

    try {}

    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

    = sdf.parse("31/12/2013");

    }

    catch (Exception e) {}

    e.printStackTrace ();

    }

    System.out.println ("date in milli seconds:" + de.getTime ());

    Thank you

    Shakir

  • Partitioning the table - range on data type (21, 7) number and varchar2

    Hello

    Database version:

    DB: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    Operating system: HP - UX nduhi18 B.11.31 U ia64 1022072414 unlimited-license user

    APP: SAP - ERP

    I have to the partition of the RANGE on UPDATED_ON or PROFILE is a table that has a structure below:

    Name Null?    Type

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

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

    MANDT NOT NULL VARCHAR2 (9)

    MR_ID NOT NULL VARCHAR2 (60)

    PROFILE NON-NULL VARCHAR2 (54)

    NO_REGISTRE NOT NULL VARCHAR2 (30)

    INTERVAL_DATE NOT NULL VARCHAR2 (24)

    AGGR_CONSUMPTION NOT NULL NUMBER (21.6)

    MDM_VERS_NO NOT NULL VARCHAR2 (9)

    MDP_UPDATE_DATE NOT NULL VARCHAR2 (24)

    MDP_UPDATE_TIME NOT NULL VARCHAR2 (18)

    NMI_CONFIG NOT NULL VARCHAR2 (120)

    NMI_CONFIG_FLAG NOT NULL VARCHAR2 (3)

    MDM_DATA_STRM_ID NOT NULL VARCHAR2 (6)

    NSRD NOT NULL VARCHAR2 (24)

    REASON_CODE NOT NULL VARCHAR2 (9)

    QUALITY_FLAG NOT NULL VARCHAR2 (3)

    METHOD_FLAG NOT NULL VARCHAR2 (6)

    MSATS_UPDATE_DAT NOT NULL VARCHAR2 (24)

    MSATS_UPDATE_TIM NOT NULL VARCHAR2 (18)

    READ_STATUS NOT NULL VARCHAR2 (3)

    LEGACY_FLAG NOT NULL VARCHAR2 (3)

    CREATED_ON NOT NULL NUMBER (21.7)

    CREATED_BY NOT NULL VARCHAR2 (36)

    UPDATED_ON NOT NULL NUMBER (21.7)

    UPDATED_BY NOT NULL VARCHAR2 (36)

    CVERSNO NOT NULL VARCHAR2 (18)

    OLDER_MD_FLAG NOT NULL VARCHAR2 (3)

    TRANSACTION_ID NOT NULL VARCHAR2 (108)

    According to my knowledge, RANGE is better suited for the DATE or NUMBER. and partition INTERVAL is available on the DATE or number.

    PROFILE of column

    I havets is of type VARCHAR2. I know that again I can partition as Oracle convert internally to varchar2 in number when the data is inserted. But the INTERVAL is not possible.  However, so could you please suggest how RANGE partition on PROFILE?

    CREATED_ON column:

    It's the NUMBER with decimals. Could you guide me please?

    Please let me know if you need more information?

    See you soon

    Sameer

    I partitioned table as below:

    PARTITION BY RANGE

    (

    "CREATED_ON".

    )

    SUBPARTITION BY HASH

    (

    'PROFILE '.

    )

    SUBPARTITION TEMPLATE

    (

    TABLESPACE SUBPARTITION 'PROF_SUB01"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB02"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB03"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB04"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB05"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB06"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB07"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB08"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB09"'PSAPISU."

    TABLESPACE SUBPARTITION 'PROF_SUB10' 'PSAPISU '.

    )

    (

    "BEF12_CP00" VALUES LOWER PARTITION TO (20120101000000),

    "JAN12_CP01" VALUES LOWER PARTITION TO (20120201000000),

    "FEB12_CP02" VALUES LOWER PARTITION TO (20120301000000),

    "MAR12_CP03" VALUES LOWER PARTITION TO (20120401000000),

    "APR12_CP04" VALUES LOWER PARTITION TO (20120501000000),

    "MAY12_CP05" VALUES LOWER PARTITION TO (20120601000000),

    "JUN12_CP06" VALUES LOWER PARTITION TO (20120701000000),

    "JUL12_CP07" VALUES LOWER PARTITION TO (20120801000000),

    "AUG12_CP08" VALUES LOWER PARTITION TO (20120901000000),

    "SEP12_CP09" VALUES LOWER PARTITION TO (20121001000000),

    "OCT12_CP10" VALUES LOWER PARTITION TO (20121101000000),

    "NOV12_CP11" VALUES LOWER PARTITION TO (20121201000000),

    "DEC12_CP12" VALUES LOWER PARTITION TO (20130101000000),

    "JAN13_CP13" VALUES LOWER PARTITION TO (20130201000000),

    "FEB13_CP14" VALUES LOWER PARTITION TO (20130301000000),

    "MAR13_CP15" VALUES LOWER PARTITION TO (20130401000000),

    "APR13_CP16" VALUES LOWER PARTITION TO (20130501000000),

    "MAY13_CP17" VALUES LOWER PARTITION TO (20130601000000),

    "JUN13_CP18" VALUES LOWER PARTITION TO (20130701000000),

    "JUL13_CP19" VALUES LOWER PARTITION TO (20130801000000),

    "AUG13_CP20" VALUES LOWER PARTITION TO (20130901000000),

    "SEP13_CP21" VALUES LOWER PARTITION TO (20131001000000),

    "OCT13_CP22" VALUES LOWER PARTITION TO (20131101000000),

    "NOV13_CP23" VALUES LOWER PARTITION TO (20131201000000),

    PARTITION 'OTHER_CPMAX' VALUES LESS THAN (MAXVALUE)

    )

    works very well.

  • Find the number in a specific range

    Hello

    I have a requirement where I need to check the lower and upper
    'Beach' for specific number. The range has increased by 0.05

    Example:


    Range:
    0.05
    0.1
    0.15
    0.2
    0.25
    0.3
    0.35


    So if I am provided number tell 0.29, I must return under
    outout


    Number Low_range High_range
    0.29 0.3 0.2
    0.13 0.15 0.1


    How can I do this via oracle sql? I tried both options but
    nothing seems to work.


    Any help would be appreciated

    Published by: 1002048 on April 23, 2013 15:00

    Hello

    Welcome to the forum!

    Oracle has two very practice of built-in functions, FLOOR and CEIL, that return the nearest integer, no more than not, or not less than a given number. Is there a way that we can take advantage of these features? Yes! They deal with a range of 1.00, and you have the beaches de.05 or 1/20 that size. Thus magnify your numbers by a factor 20, use CEIL and FLOOR and then narrow results by a factor of 20, like this:

    SELECT  n
    ,     FLOOR (n * 20) / 20    AS low_range
    ,     CEIL  (n * 20) / 20    AS high_range
    FROM     table_x
    ;
    

    To test this, I created a test table:

    CREATE TABLE     table_x
    (
         n     NUMBER
    );
    
    INSERT INTO table_x (n) VALUES (.29);
    INSERT INTO table_x (n) VALUES (.13);
    COMMIT;
    

    You should post examples of data like this whenever you have a question.

    I got these results from these data:

    `        N  LOW_RANGE HIGH_RANGE
    ---------- ---------- ----------
           .29        .25         .3
           .13         .1        .15
    

    Moreover, it is better to ask questions like that are on the language SQL, PL/SQL, and SQL
    See the FAQ for this forum {message identifier: = 9360002}

  • Get number of records in the date range - IDE: PLSQL Developer

    I want to count the number of records of members who register within a date range specified, based on effective and expiration dates and their "elg_code". I posted the SQL code for some examples of data. What I would like to see returned is in three columns of the counties where the eff_date date_exp members fall within the date range specified by the SQL and have an Elg_code of ' ' (space).

    So what I would like is all members with elg_code ' ' where he eff_dt and exp_dt range is April 2012, 2012 MAY & JUN 2012. Thus, according to data from the sample I posted, Mark, where his elg_code record is ' ', his eff_dt is 01/01/2011 and April 2012 (30/04/2012) is his exp_dt. Range of the brand statement may 2012, but not MAY or JUNE of 2012. Marty would tally for the APR and MAY because his eff_dt is before MAY 2012 and his exp to MAY 2012. etc...

    According to the data below, the results should resemble:

    APR MAY JUN
    4-3-2

    APR should have FRANK, MARK, MARTY, MARY.
    MAY should have FRANK, MARTY, MARY
    JUN should have FRANK and MARIE

    NOAM and JOHN should not appear as his records with elg_code ' ' have no documents eff_dt and exp_dt which are April-June 2012.

    So what I tried without success as it appears that I have a kind of Cartesian question (?), is:

    Select count (m1.mbr_name) APR,
    Count (m2.mbr_name) MAY,
    Count (m3.mbr_name) JUN
    mbr2 M1,
    mbr2 m2,
    mbr2 m3
    "where m1.eff_dt < ' 01 - may - 2012"
    "and m1.exp_dt > ' 01-Apr-2012.
    and m1.elg_code = ' '
    "and m2.eff_dt < 1 June 2012"
    "and m2.exp_dt > ' 01 - may - 2012"
    and m2.elg_code = ' '
    "and m3.eff_dt < 1 July 2012"
    "and m3.exp_dt > 1 June 2012"
    and m3.elg_code = ' '


    Here's the DML

    Thanks for any help!


    create table mbr2 (mbr_name varchar (10), varchar (1) grpid eff_dt date, date of exp_dt elg_code varchar (1))
    Commit

    insert into mbr2 values ('BRAND', 'A', to_date (January 1, 2011 ',' DD-MM-YYYY '), to_date (April 30, 2012 ',' DD-MM-YYYY '), ' ')
    insert into mbr2 values ('BRAND', 'A', to_date (May 1, 2012 ',' DD-MM-YYYY '), to_date (31 December 2013 ',' DD-MM-YYYY '), 'C')

    insert into mbr2 values ('MARTY', 'A', to_date (January 1, 2011 ',' DD-MM-YYYY '), to_date (May 31, 2012 ',' DD-MM-YYYY '), ' ')
    insert into mbr2 values ('MARTY', 'A', to_date (June 1, 2012 ',' DD-MM-YYYY '), to_date (31 December 2013 ',' DD-MM-YYYY '), 'C')

    insert into mbr2 values ('FRANK', 'B', to_date (January 1, 2011 ',' DD-MM-YYYY '), to_date (June 30, 2012 ',' DD-MM-YYYY '), ' ')
    insert into mbr2 values ('FRANK', 'B', to_date (July 1, 2012 ',' DD-MM-YYYY '), to_date (31 December 2013 ',' DD-MM-YYYY ""), 'C')

    insert into mbr2 values ('MARY', 'B', to_date (January 1, 2011 ',' DD-MM-YYYY '), to_date (June 30, 2012 ',' DD-MM-YYYY '), ' ')
    insert into mbr2 values ('MARY', 'B', to_date (July 1, 2012 ',' DD-MM-YYYY '), to_date (31 December 2013 ',' DD-MM-YYYY ""), 'C')

    insert into mbr2 values ('JOHN', 'C', to_date (January 1, 2011 ',' DD-MM-YYYY '), to_date (July 1, 2011 ',' DD-MM-YYYY '), ' ')
    insert into mbr2 values ('JOHN', 'C', to_date (July 1, 2011 ',' DD-MM-YYYY '), to_date (1 January 2012 ',' DD-MM-YYYY ""), 'C')

    insert into mbr2 values ("NOAM" 'd', to_date (July 1, 2012 ',' DD-MM-YYYY '), to_date (31 December 2013 ',' DD-MM-YYYY '), ' ' ")

    Commit

    This gives you a report for the current month and the two front. Column header must be adjusted ;-)

    select
      count(
      case
      when
        eff_dt < add_months(trunc(sysdate,'MM'), -1)
        and
        exp_dt >= add_months(trunc(sysdate,'MM'), -2)
      then 1
      end) April
    , count(
      case
      when
        eff_dt < add_months(trunc(sysdate,'MM'), 0)
        and
        exp_dt >= add_months(trunc(sysdate,'MM'), -1)
      then 1
      end) May
    , count(
      case
      when
        eff_dt < add_months(trunc(sysdate,'MM'), 1)
        and
        exp_dt >= add_months(trunc(sysdate,'MM'), 0)
      then 1
      end) June
    from mbr2
    where
    elg_code = ' '
    and
    eff_dt < add_months(trunc(sysdate,'MM'), 1)
    and
    exp_dt >= add_months(trunc(sysdate,'MM'), -2)
    
    APRIL     MAY     JUNE
    4     3     2
    
  • How to change the input range (DAQ assistant) with a digital command?

    Hello everyone

    I am currently working with the NI USB-6218 acquisition card.

    In order to acquire a signal, I would like to be able to choose the input range of the DAQ with a digital command Wizard (and not opening the window of DAQ assistant) (as 'number of sample' and section 'rate'...)

    Is this possible and if so, how?

    Thank you very much in advance for your answers!

    You can't with the DAQ Assistant so just click on and select "generate the Code of OR-DAQmx. You can edit the Subvi who performs the installation.

  • Is it possible to find my serial number of the equipment of a key of Activation Windows?

    My wife had a netbook flew at her high school.  She has a record of the key of Activation of Windows that has been used to upgrade this machine Windows 7 Starter to Windows 7 Home Premium.  Unfortunately, she doesn't have a record of the serial number of this unit.  Apparently, this step is not respected a year ago, when the netbook was acquired.  We have the model number and a small range of possible serial numbers, collected from other netbooks that were purchased at the same time.

    A student is suspected in the theft, as it has a similar netbook and asked another student to help him wipe the drive and reinstall everything.
    Is it possible to get a serial number of machine or a MAC address for this computer to Microsoft?

    The product key for the existing installation can be retrieved (if it is still installed) using Belarc Advisor www.belarc.com

    If the key is the same as that of proof of license woman of your, then the machine is his :) - keys for the updates are unique.

    Depending on how you purchased the machine, the manufacturer may have a record of the serial number of your machine in their database of guarantee (if you entered the guarantee!)

    MS does NOT record that the key belongs to who - registration and activation databases are kept on different servers specifically to prevent the ' contamination '.

    HTH?

  • 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

  • PDEElementGetBBox raises "a number is out of range" exception

    I have the following problem:

    I use the PDEElementGetBBox method, but it raises "a number is out of range" exception on a specific PDEelement, type "kPDEShading".

    Any help on why this happens? Not use the method with the type of kPDEShading?

    Some types of gradients have necessarily boxes - so it's perfectly fine.   That's why use those DURING / blocks of MANAGER is so important.

  • Can I download the CS6 together and ask the serial number in the next few days?

    I ordered the CS6 standard CDW, but need the product today. Is it possible that I can download the standard range of CS6, and ask the serial number when it arrives in a few days? Or how would apply this serial number when it comes to individual programs on the site of trial download, when I need then the whole suite?

    Hi Bperrinsmith,

    Yes! You can download the entire suite CS6 only once, but use it as a trial using your Adobe Id. Please make sure that you go through the very important information before downloading the product.

    Link: http://prodesigntools.com/adobe-cs6-direct-download-links.html

    See you soon,.

    Michael Sharma

  • Predefine the ID of the card before the creation of the aid?

    We are trying to simplify our integration process helps for window-level help in the program. How we would do this is that developers assign the ID card in the code of law from the outset in the development process, before aid is written. However, doing so would mean that any file of card that I get from them will not include topic titles. Is this a problem?

    (The advantage is that by using this system, I could go through the application of the screen during the test phase and determine which screens have no related help topics.)

    If we can indeed be implemented this system, what the developer should give me? That the contents of the file should look like to?

    It's a great message because it tells you that

    (a) your developer called HH_HELP_CONTEXT (the call just for the numbers on the card)
    (b) the card number is 50001, and
    (c) your help file, "MainHelp.chm," does not contain a subject related to the card number 50001.

    What you need to do here is to assign a topic to this card number. The option change MapIDs in your project you should be able to do. Then, after compiling, the application should start this topic.

    Why you do not receive the same information from HR BugHunter? I do not know. I've only used the new versions of HR briefly as trial versions.

    John

  • On the date ranges in search of oracle forms

    I use service number, name, type person and date as search criteria in the custom form ranges.
    When I enter the employee number, press the search button, I get the exact info in the block of result.
    Result block contains
    name of the employee, personid, emp numbed, org, start_date.
    Similarly when I enter the employee number, dept, I get the correct values.
    My question is, when I enter the date range. IAM unable to filter the data.
    When I enter START_DATE between nvl(:BLOCKNAME.) Start_date, 1 January 1901 ') and nvl(:BLOCKNAME.) End_date, 31-DEC-4712') where block clause in the result. I had data for the range of dates also.

    If I give condition in where clause results take so long when I search with the name of the employee, number, dept, person type.

    If I have a query with the date, the persormance is good.

    Think you know everything, how it prevents START_DATE between nvl(:BLOCKNAME.) Start_date, 1 January 1901 ') and nvl(:BLOCKNAME.) End_date, 31-DEC-4712') when look us with the employee's name, number, dept, person type.

    So leave the WHERE clause of your empty block and put something like the following in your search button:

    IF    :BLOCK.START_DATE IS NOT NULL
       OR :BLOCK.END_DATE IS NOT NULL THEN
      SET_BLOCK_PROPERTY('YOURBLOCK', ONETIME_WHERE, 'START_DATE between nvl(:BLOCKNAME.START_DATE,TO_DATE(''01-JAN-1901'', ''DD-MON-YYYY'')) and nvl(:BLOCKNAME.END_DATE,TO_DATE(''31-DEC-4712'', ''DD-MON-YYYY''))');
    END IF;
    
  • remove a phone number in the contact information

    Hi my daughter and I shared an apple ID. She now has her own but I can't seem to retire his number from the list of id main apple of numbers and e-mail contacts etc she still gets weird iMessage and she is not able to add his number to his new account help please! @!

    You disconnect from the iMessage and FaceTime on his device and connect you then return with his new Apple ID? If she checked in settings > Messages, send / receive, is his number and Apple ID the only checkmark beside it? Have you checked your device in settings > Messages > Send and receive, and make sure that your number and Apple ID are the only ones to be audited?

  • I'm currently developing the feature keys on my MacBook. In the process, he asked that I enter a code sent by message to a phone number (only the 2 last digits are revealed) that I do not have access to.   How can I fill the activation?

    I'm currently developing the feature keys on my MacBook. In the process, he asked that I enter a code sent by message to a phone number (only the 2 last digits are revealed) that I do not have access to.   How can I fill the activation?

    See "change how the new features can be approved" here:

    OS X Yosemite: Configure iCloud keychain

    As you can see, this allows you to change the phone number.

Maybe you are looking for

  • First HP: how you factor polynomials?

    Sorry if I'm missing something obvious, this is my first graphing calculator. Anyway, I know that I can use CAS mode to multiply polynomials with the key to simplify, but is not factor out them. How I would be something like x factor ^ 4-6 x ^ 3-31 x

  • Favorites &amp; bookmarks bar has disappeared

    I went on vacation for a week, came back, turned on my computer, laptop and all my favorites and bookmarks toolbar disappeared. And Firefox won't let me bookmark new pages either? I use Firefox 3.6.13 and Max OSX 10.6.6 I tried troubleshooting from t

  • How can I re name of the hard drive

    Hi I have the student version and Office 365 home installed on my mac - it is used via bootcamp and OSX. After each restart, I am prompted to activate my subscription, the password is not accepted as the software is already loaded on 2 machines. I mu

  • MY more than 8600 HPOfficejet Pro does not print on any e-mail. I added the printer e-catalog, one

    I use a HP Officejet 8600 pro, I am running Windows 7 64 bit.  I have no error message when I send the e-mail, it just never happens.  My e-mail program (link century Mail) indicates that the message has been sent correctly.  This is a new printer, a

  • Analyze and modify a resonant circuit

    I am struggling with a configuration that is prone to oszillation unwanted. The reality is a little more complex, but I think I can simplify the circuit to a resonant circuit. I have an electronic charge that seems to have a current measurement resis