Several score range

Hello

I created a table with multiple partitions

CREATE TABLE big_table2)

ID NUMBER (10),

CREATED_DATE DATE,

lookup_id NUMBER (10),

given VARCHAR2 (50).

CONSTRAINT big_table_pk2 PRIMARY KEY (id))

PARTITION OF RANGE (created_date)

(PARTITION big_table2_p1 VALUES LESS THAN (TO_DATE (4 January 2013 ',' DD/MM/YYYY ')) TABLESPACE users,)

PARTITION big_table2_p2 VALUES LESS THAN (TO_DATE (January 7, 2014 ',' DD/MM/YYYY ')) TABLESPACE users;

PARTITION big_table2_p3 VALUES LESS THAN (TO_DATE (January 9, 2015 ',' DD/MM/YYYY "")) TABLESPACE users);

CREATE INDEX bita_created_date_i2 ON big_table2 (created_date) LOCAL;

CREATE INDEX bita_look_fk_i2 ON big_table2 (lookup_id) LOCAL;

Big_table2 ALTER TABLE ADD)

CONSTRAINT bita_look_fk2

FOREIGN KEY (lookup_id)

REFERENCES lookup (id)

);

I would like to swap partition

ALTER TABLE HR. BIG_TABLE2 EXCHANGE PARTITION (BIG_TABLE2_P1, BIG_TABLE2_P2, BIG_TABLE2_P3) WITH THE TABLE HR. I HAVE _BIG_TABLE2 $ WITH VALIDATION

The foregoing gives error

Error from line 51 in order:

ALTER TABLE HR. BIG_TABLE2 EXCHANGE PARTITION (BIG_TABLE2_P1, BIG_TABLE2_P2, BIG_TABLE2_P3) WITH THE TABLE HR. I HAVE _BIG_TABLE2 $ WITH VALIDATION

Error report:

SQL error: ORA-14006: invalid partition name

  1. 00000 - "invalid partition name.

* Cause: a name of the form < ID > partition is

expected, but does not exist.

* Action: enter an appropriate partition name.

My data

Select distinct to_char(created_date,'dd-mon-yyyy') from HR. I _BIG_TABLE2 $

January 28, 2013

January 28, 2015

January 28, 2014

Please may I know how to exchange the partition into several partitions.

Thank you

You cannot share a single table with multiple partitions.

Either split your table in 3 separate tables and Exchange each one with the appropriate partition, or merge the 3 partitions and swap with the tables.

Tags: Database

Similar Questions

  • Animate the text over several characters range?

    Play with the AE text animation tools that are pretty cool.

    However, I have difficulties to get exactly what I want to happen, happen.

    For reasons of simplicities, lets say that my text is ABCDEFG and I want each letter to the scale zero, from the left and moving on toward the right.  Well, I got that.

    But baisically AE not the complete scale from 0 to 100 in A then B etc.  I want to be able to adjust the range so has starts, then B starts, then begins to C , then D begins, and so only has ends.

    Looks like a simple enough concept, but I don't understand how to do it.

    ?

    Thank you

    You'll want to change the shape of the animation.

    Open advanced under the host options, choose ramp upwards to the form and then animate the offset.

  • Table in different ranges of sort number

    Hello

    I want to assign a color to several number ranges. I would like to know the best way to do it.

    I created an example.

    In this example, I have a table with numbers and assign a color to the values:

    <2.5>

    2.5 - 5 yellow

    Orange 5 to 7,5

    7.5 - 10 Red

    This is just one example and I have more than 4 lines in my application. I would like to know if there is another way to sort the table that the use of several business structures...

    Thanks for help!

    Kind regards.

    Daikataro wrote:

    In this way it would be to dynamically assign a color without a ton of cases, simply find the right constant to have a good distinction

    (This assumes that the beaches are all the same length and that the desired colors are in numerical order. Far too restrictive.)

    I would use table of threshold on a table of limit values and indexes into a color table. Here is an example:

    (Note that all values > 10 will also be Red. modify them if you want a different color for > 10 or similar)

    The colors or the adjustment range is as simple as changing the constants in table diagram.

  • Erroneous results when you set a function of window with the range option

    Hello

    I'm trying to calculate a moving average of the previous three months (ex: 2014-03 = avg (02-2014, 2014-01, 2013-12)) but the results are not correct back. I tried to check what are the limits of the window of the query below, but I do not understand how oracle calculates their. In the attached photos, you can see the results of the following query:

    Select
       tab. *,

    -first_value (profit) on TSF (CUSTOMER_ID ORDER BY month_id SCORE 3 PREVIOUS LINES).
    -last_value (profit) on lst (CUSTOMER_ID ORDER BY month_id SCORE 3 PREVIOUS LINES).

    first_value(profit) on (PARTITION BY CUSTOMER_ID ORDER BY month_id asc RANGE BETWEEN 3 EARLIER and 1 EARLIER ) fst_1,.

    LAST_VALUE (profit)  more than (PARTITION BY CUSTOMER_ID ORDER BY month_id asc RANGE BETWEEN 3 EARLIER and 1 EARLIER) lst_1,.

    sum (profit)  more than (PARTITION BY CUSTOMER_ID ORDER BY month_id asc RANGE BETWEEN 3 EARLIER and 1 EARLIER ) sum_1/ *,.
    AVG (profit) more avg_1 of (CUSTOMER_ID ORDER BY month_id asc SCORE RANGED from 3 PREVIOUS 1 and EARLIER).
    de (

    Select 201312 month_id,600 CUSTOMER_ID,10 benefit of double Union all the
    Select 201401,600,1 of double Union all the
    Select 201402,600,3 of double Union all the
    Select 201403,600,12 of double Union all the


    Select 201404,600,5 for double Union all the
    Select 201405,600,8 of double Union all the
    Select 201406,600,4 a double Union all the
    Select ( 201407,600,2 from order by double 1) tab

    1 = 1

    Results:

    000013.png

    Range between works on interval increments, not number of lines (for 201402, so 201401, 201399, 201398)  So I think that in your case you want to use lines between

    Select

    Tab.*,

    -first_value (profit) on TSF (CUSTOMER_ID ORDER BY month_id SCORE 3 PREVIOUS LINES).

    -last_value (profit) on lst (CUSTOMER_ID ORDER BY month_id SCORE 3 PREVIOUS LINES).

    FIRST_VALUE (profit) on fst_1 (PARTITION CUSTOMER_ID ORDER BY month_id asc rows EARLIER BETWEEN 3 and 1 PREVIOUS),

    LAST_VALUE (profit) on lst_1 (PARTITION CUSTOMER_ID ORDER BY month_id asc rows EARLIER BETWEEN 3 and 1 PREVIOUS),

    Sum (profit) on sum_1 (PARTITION CUSTOMER_ID ORDER BY month_id asc rows EARLIER BETWEEN 3 and 1 PREVIOUS) / *.

    AVG (profit) more avg_1 (PARTITION OF CUSTOMER_ID ORDER BY month_id asc rows EARLIER BETWEEN 3 and 1 PREVIOUS).

    de)

    Select 201312 month_id, 600 CUSTOMER_ID, 10 all profit double union

    Select 201401,600,1 from all the double union

    Select 201402,600,3 from all the double union

    Select 201403,600,12 from all the double union

    Select 201404,600,5 from all the double union

    Select 201405,600,8 from all the double union

    Select 201406,600,4 from all the double union

    Select 201407,600,2 from dual tab by 1)

    order of month_id

    What do you expect?

    MONTH_ID CUSTOMER_ID PROFIT FST_1 LST_1 SUM_1
    201312 600 10 - - -
    201401 600 1 10 10 10
    201402 600 3 10 1 11
    201403 600 12 10 3 14
    201404 600 5 1 12 16
    201405 600 8 3 5 20
    201406 600 4 12 8 25
    201407 600 2 5 4 17

    8 selected lines.

  • Substitute different fonts in several documents

    Two years ago, I wrote several score of InDesign documents that made little use of a font available. (BlairMdITC TT medium)

    Recently, I see that he needed to change some of these documents, but the police above seems to be a point of purchase from a third party.

    There are several positions of the community on font substitution, but so far I have not found what I'm looking for.

    Is there a convenient method for substituting a different font in several documents?

    Thanks, s. Neil Von mire

    Yosemite 10.10.3

    Mac Mini - late 2014

    InDesign CC 2015

    If you have installed iWord or iLife you get a bunch of additional fonts and BlairMdITC TT medium is one of these fonts.

    http://Fletcher.Tomalty.com/posts/2010/hidden_fonts_on_Mac_OS_X/

  • laptop is slow at the point of being unusable

    In short, my Dell Latitude E4310 laptop is slow at the point of being unusable. I am also unable to keep the Windows Defender service runs.

    Last week I got a screen blue error (code c000021a), probably as a result of an update Windows misapplied. I was able to go back to a previous instance of Windows and apply the patches successfully.

    Here is what I checked / done (not necessarily in that order).

    • My BIOS is the most recent (A11) and BIOS diagnostics to come clean.
    • Several analyses of virus & malware in safe mode came up clean.
    • No problem in Windows Startup Repair.
    • I ran a clean boot without result
      The plan of power seems normal and I uninsalled (temporarily) all anti-virus & malware programs.
    • I ran disk cleanup and defragged the hard drive
    • System, advanced, performance, is assigned to the properties 'adjust for best performance ".
    • My performance index Windows scores range from 6.9 (processor) to 4.1 (graphics).
    • Running a Windows system health report returns nothing.
    • CHKDSK (right click on c:, properties, tools, error checking) did find and fix HARD drive errors. I would fix the CHKDSK and WININIT, newspapers but must be either in my or Admininstrator event logs.
    • I ran SFC. EXE, three times, and each time check fails, then only reach 10%, indicating the following: "Windows Resource Protection could not perform the requested operation."

    The journal of SFC seems normal except for the following: 2012-09-07 22:30:28, Info CSI 00000023 [SR] could not check component of b10e9bd0c69db5027b503ea3749c28f3 files, Version = 6.1.7600.16820, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), the Culture neutral, VersionScope is 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, neutral, TypeName neutral, clear PublicKey is damaged (FALSE). I can't find a file or folder anywhwere on my system called "b10e9bd0c69db5027b503ea3749c28f3".

    Another forum suggested a clean installation of the factory OEM of Windows.  I would like confirmation or other ideas, because that doesn't seem to be a trivial process.

    Thank you.  -Mark

    Create/use the bootable utility check disk provided by your manufacturer of HD.

    Also free www.memtest.org bootable, run for at least 1 hour or xx passes

  • Show counts and averages for the 3 categories of side by side

    The following query was initially developed for the calculation of GPAs (the 920965 thread id). I changed to perform the same type of summary on partitions.
    The problem is that there are 3 types of partitions as opposed to a single type of GPA. When I run the query for the partition type, the results for
    that the partition type come out well, however, when I tried to add in other partition types (they have been commented out in the query below), results
    come not good when was 01:20 more in the query. This query can be modified to handle several types of partition, or will I
    need to separate runs for each type?

    Here the result should look like. The numbers in the pass are the number of students who have a score within each range
    and the overall average rating for each category is at the bottom.

    EXAMPLE OF SUMMARY:
      Score Range     Read     Math     Write
                   
     001 - 299     18     12     25
     300 - 349     60     50     50
     350 - 399     235     150     207
     400 - 449     523     400     463
     450 - 499     840     870     857
     500 - 549     1300     1189     1314
     550 - 599     1321     1400     1425
     600 - 649     1298     1280     1262
     650 - 699     605     940     737
     700 - 749     200     265     330
     750 - 800     109     119     102
     NO SCORES     1450     1284     1187
                   
     TOTAL     7959     7959     7959
                   
     AVERAGE     553     563     559
    Details of the sample:
    ID     READ     MATH     WRITE
    121212     570     520     550
    112121     650     570     600
    121121     
    111221     
    111122     600     625     610
    The way that the query runs now, if I run only during playback, playback numbers doing well, if I run it only for mathematics, Math numbers
    Come in fine, etc. When I typed in the query, the numbers came out badly.


    -This part creates the table in the range.  Usually just create once
    CREATE TABLE    Score_Range
    AS
    SELECT  000 AS low_score, 300 AS high_score, '001 - 299' AS display_txt, 1  AS range_sort    FROM dual    UNION ALL
    SELECT  300 AS low_score, 350 AS high_score, '300 - 349' AS display_txt, 2  AS range_sort    FROM dual    UNION ALL
    SELECT  350 AS low_score, 400 AS high_score, '350 - 399' AS display_txt, 3  AS range_sort    FROM dual    UNION ALL
    SELECT  400 AS low_score, 450 AS high_score, '400 - 449' AS display_txt, 4  AS range_sort    FROM dual    UNION ALL
    SELECT  450 AS low_score, 500 AS high_score, '450 - 499' AS display_txt, 5  AS range_sort    FROM dual    UNION ALL
    SELECT  500 AS low_score, 550 AS high_score, '500 - 549' AS display_txt, 6  AS range_sort    FROM dual    UNION ALL
    SELECT  550 AS low_score, 600 AS high_score, '550 - 599' AS display_txt, 7  AS range_sort    FROM dual    UNION ALL
    SELECT  600 AS low_score, 650 AS high_score, '600 - 649' AS display_txt, 8  AS range_sort    FROM dual    UNION ALL
    SELECT  650 AS low_score, 700 AS high_score, '650 - 699' AS display_txt, 9  AS range_sort    FROM dual    UNION ALL
    SELECT  700 AS low_score, 750 AS high_score, '700 - 749' AS display_txt, 10 AS range_sort    FROM dual    UNION ALL
    SELECT  750 AS low_score, 999 AS high_score, '750 - 800' AS display_txt, 11 AS range_sort    FROM dual    UNION ALL
    SELECT  NULL,          NULL,           'No Scores',                      13           FROM dual;
    ------------------------------------------------------------------------------------------------------------------------

    -This part is the actual query to use to see the summary
    WITH interesting_score_stat AS
    (
        SELECT stu_population, '1Applied' Status, college,
               sat_read, sat_math, sat_write
        FROM   gpa_stat
        WHERE  stu_population  in ('F','T')
        AND    academic_period = '200940'
    UNION ALL
        SELECT stu_population, '2Accepted' Status, college,
               sat_read, sat_math, sat_write
        FROM   gpa_stat
        WHERE  stu_population  in ('F','T')
        AND    academic_period = '200940'
        AND    accepted = 1
    UNION ALL
        SELECT stu_population, '3Deposit' Status, college,
               sat_read, sat_math, sat_write
        FROM   gpa_stat
        WHERE  stu_population  in ('F','T')
        AND    academic_period = '200940'
        AND    accepted = 1
        AND    deposit  = 1
    ),       all_colleges      AS
    (
        SELECT DISTINCT stu_population, Status, college
        FROM   interesting_score_stat
        
    )
    SELECT c.stu_population, 
           c.Status,
           c.college,
           r.display_txt           AS scorerange,
           COUNT (s.college)       AS count,
           round(NVL(AVG(s.sat_read),0),0)  AS avgRead
    --       round(NVL(AVG(s.sat_math),0),0)  AS avgMath,
    --       round(NVL(AVG(s.sat_write),0),0) AS avgWrite
    FROM  all_colleges           c
    CROSS JOIN score_range         r
    LEFT OUTER JOIN interesting_score_stat s    
      ON ( c.stu_population   = s.stu_population
     AND   c.status    = s.status
     AND   c.college   = s.college
     AND   r.low_score  <= s.sat_read
     --AND   r.low_score  <= s.sat_math
     --AND   r.low_score  <= s.sat_write
     AND   r.high_score  > s.sat_read
    -- AND   r.high_score  > s.sat_math
    -- AND   r.high_score  > s.sat_write
         )
      OR ( c.stu_population  =  s.stu_population 
     AND   c.status   =  s.status
     AND   c.college  =  s.college
     AND   r.low_score     IS NULL
     AND   s.sat_read      IS NULL
    -- AND   s.sat_math      IS NULL
    -- AND   s.sat_write     IS NULL
         )
    GROUP BY c.stu_population, 
             c.status, 
             cube ( c.college, 
                    r.display_txt
                  )
    ORDER BY c.stu_population, 
             c.status, 
             c.college, 
             r.display_txt
     
    ;

    Hello

    To make the sample data easier to manage, I cut socre_range up to four lines:

    SELECT  450 AS low_score, 500 AS high_score, '450 - 499' AS display_txt, 5  AS range_sort    FROM dual    UNION ALL
    SELECT  500 AS low_score, 550 AS high_score, '500 - 549' AS display_txt, 6  AS range_sort    FROM dual    UNION ALL
    SELECT  550 AS low_score, 600 AS high_score, '550 - 599' AS display_txt, 7  AS range_sort    FROM dual    UNION ALL
    SELECT  NULL,          NULL,           'No Scores',                      13           FROM dual;
    

    and use these data in gpa_stat:

    select '12345678' ID, '200940' Academic_period, 'Freshmen' Stu_Pop, 'F' Stu_population, 'LA' College, 1 Applied, 1 Accepted, 1 Deposit, 560 SAT_READ, 590 SAT_MATH, 510 SAT_WRITE from dual union all
    select '23456789',     '200940',    'Transfer',    'T',     'LA',    1,    1,    0,  null, null, null    from dual union all
    select '34567890',    '200940',    'Freshmen',    'F',    'BN',    1,    1,    1,    500,    510,    540 from dual union all
    select '45678901',    '200940',    'Freshmen',    'F',    'BN',    1,    1,    1,    530,    520,    630 from dual union all
    select '56789012',    '200940',    'Freshmen',    'F',    'BN',    1,    1,    1,    550,    520,    540 from dual union all
    select '67890123',    '200940',    'Freshmen',    'F',    'LA',    1,    1,    1,    null,    null,  null from dual 
    

    This query:

    WITH   cntr        AS
    (
         SELECT     LEVEL     test_code
         FROM     dual
         CONNECT BY     LEVEL <= 3     -- # of measure columns (sat_read, sat_math and sat_write)
    )
    ,     unpivoted_data         AS
    (
         SELECT     s.stu_population
         ,     CASE
                   WHEN  accepted = 1
                   AND   deposit  = 1
                               THEN     3
                   WHEN  accepted = 1
                               THEN     2
                               ELSE     1
              END     AS status_lvl
         ,     s.college
         ,     c.test_code
         ,     CASE     c.test_code
                   WHEN  1          THEN  sat_read
                   WHEN  2          THEN  sat_math
                   WHEN  3          THEN  sat_write
              END     AS score
         FROM          gpa_stat     s
         CROSS JOIN     cntr          c
         WHERE   stu_population          IN ('F', 'T')     -- Do all filtering here
         AND     academic_period          = '200940'
    )
    ,     all_colleges     AS
    (
         SELECT DISTINCT     college
         FROM             unpivoted_data
    )
    ,     all_populations     AS
    (     SELECT DISTINCT     stu_population
         FROM             unpivoted_data
    )
    SELECT       p.stu_population
    ,       a.display_txt                              AS status
    ,       c.college
    ,       NVL ( r.display_txt
               , ' (Total)'
               )                                   AS scorerange
    ,       COUNT     (CASE WHEN u.test_code = 1 THEN 1     END)     AS read
    ,       AVG      (CASE WHEN u.test_code = 1 THEN score END)     AS avgread
    ,       COUNT (CASE WHEN u.test_code = 2 THEN 1     END)     AS math
    ,       AVG      (CASE WHEN u.test_code = 2 THEN score END)     AS avgmath
    ,       COUNT (CASE WHEN u.test_code = 3 THEN 1     END)     AS write
    ,       AVG      (CASE WHEN u.test_code = 3 THEN score END)     AS avgwrite
    FROM                    all_populations p
    CROSS JOIN         all_status         a
    CROSS JOIN         all_colleges    c
    CROSS JOIN         score_range     r
    LEFT OUTER JOIN     unpivoted_data  u     ON       u.stu_population  =  p.stu_population
                                             AND     u.status_lvl       >= a.lvl_id
                                             AND      (     (       u.score      >=  r.low_score
                                                          AND       u.score      <   r.high_score
                                          )
                                  OR     (       u.score      IS NULL
                                          AND       r.low_score  IS NULL
                                          )
                                      )
                             AND     u.college       =  c.college
    GROUP BY  p.stu_population
    ,            a.display_txt
    ,       c.college
    ,       ROLLUP ((r.display_txt))
    ORDER BY  p.stu_population
    ,            a.display_txt
    ,         c.college
    ,       GROUPING (r.display_txt)
    ,            MIN (r.range_sort)
    ;
    

    produces this output:

    STU STATUS    CO SCORERANG READ READ MATH MATH WRITE WRITE
    --- --------- -- --------- ---- ---- ---- ---- ----- -----
    F   1Applied  BN 450 - 499    0         0          0
    F   1Applied  BN 500 - 549    2  515    3  517     2   540
    F   1Applied  BN 550 - 599    1  550    0          0
    F   1Applied  BN No Scores    0         0          0
    F   1Applied  BN  (Total)     3  527    3  517     2   540
    F   1Applied  LA 450 - 499    0         0          0
    F   1Applied  LA 500 - 549    0         0          1   510
    F   1Applied  LA 550 - 599    1  560    1  590     0
    F   1Applied  LA No Scores    1         1          1
    F   1Applied  LA  (Total)     2  560    2  590     2   510
    F   2Accepted BN 450 - 499    0         0          0
    F   2Accepted BN 500 - 549    2  515    3  517     2   540
    F   2Accepted BN 550 - 599    1  550    0          0
    F   2Accepted BN No Scores    0         0          0
    F   2Accepted BN  (Total)     3  527    3  517     2   540
    F   2Accepted LA 450 - 499    0         0          0
    F   2Accepted LA 500 - 549    0         0          1   510
    F   2Accepted LA 550 - 599    1  560    1  590     0
    F   2Accepted LA No Scores    1         1          1
    F   2Accepted LA  (Total)     2  560    2  590     2   510
    F   3Deposit  BN 450 - 499    0         0          0
    F   3Deposit  BN 500 - 549    2  515    3  517     2   540
    F   3Deposit  BN 550 - 599    1  550    0          0
    F   3Deposit  BN No Scores    0         0          0
    F   3Deposit  BN  (Total)     3  527    3  517     2   540
    F   3Deposit  LA 450 - 499    0         0          0
    F   3Deposit  LA 500 - 549    0         0          1   510
    F   3Deposit  LA 550 - 599    1  560    1  590     0
    F   3Deposit  LA No Scores    1         1          1
    F   3Deposit  LA  (Total)     2  560    2  590     2   510
    
                                     AVG       AVG         AVG
    STU STATUS    CO SCORERANG READ READ MATH MATH WRITE WRITE
    --- --------- -- --------- ---- ---- ---- ---- ----- -----
    T   1Applied  BN 450 - 499    0         0          0
    T   1Applied  BN 500 - 549    0         0          0
    T   1Applied  BN 550 - 599    0         0          0
    T   1Applied  BN No Scores    0         0          0
    T   1Applied  BN  (Total)     0         0          0
    T   1Applied  LA 450 - 499    0         0          0
    T   1Applied  LA 500 - 549    0         0          0
    T   1Applied  LA 550 - 599    0         0          0
    T   1Applied  LA No Scores    1         1          1
    T   1Applied  LA  (Total)     1         1          1
    T   2Accepted BN 450 - 499    0         0          0
    T   2Accepted BN 500 - 549    0         0          0
    T   2Accepted BN 550 - 599    0         0          0
    T   2Accepted BN No Scores    0         0          0
    T   2Accepted BN  (Total)     0         0          0
    T   2Accepted LA 450 - 499    0         0          0
    T   2Accepted LA 500 - 549    0         0          0
    T   2Accepted LA 550 - 599    0         0          0
    T   2Accepted LA No Scores    1         1          1
    T   2Accepted LA  (Total)     1         1          1
    T   3Deposit  BN 450 - 499    0         0          0
    T   3Deposit  BN 500 - 549    0         0          0
    T   3Deposit  BN 550 - 599    0         0          0
    T   3Deposit  BN No Scores    0         0          0
    T   3Deposit  BN  (Total)     0         0          0
    T   3Deposit  LA 450 - 499    0         0          0
    T   3Deposit  LA 500 - 549    0         0          0
    T   3Deposit  LA 550 - 599    0         0          0
    T   3Deposit  LA No Scores    0         0          0
    T   3Deposit  LA  (Total)     0         0          0
    
    60 rows selected.
    

    Among the assumptions I made were some of status.
    The different status of the status values seem to be subsets of each other. Otherwise said, any line that is qualified as "3Deposit" is also considered to be '2Accepted' and any line which is recorded as "2Accepted" is also considered to be '1Applied.
    For the same reason that you should have a table of scre_range, you must also have a table for the statutes of the thesis, like this:

    CREATE TABLE  all_status
    AS
    SELECT     1 as lvl_id, '1Applied' AS display_txt     FROM dual     UNION ALL
    SELECT     2,             '2Accepted'             FROM dual     UNION ALL
    SELECT     3,          '3Deposit'               FROM dual;
    

    where the highest lvl_ids are supposed to include lower levels (for example, lvl_id 1 is a subset of the 2 and 3).

    When there is no line in a group, the Middle columns in the output above remains NULL.
    0 in these places, use "NVL (AVG (...), 0) ' instead of «AVG (...)»

  • I must be a fool!

    So my local table tennis club has a somewhat heavy scoring system where by the scores range from paper to excel spreadsheets which are stationed around and then transformed into html and put online for viewing.

    So I think that... I'm trying to learn the apex this might be the ideal learning tool and somewhat practical exercise - sweet!

    I get the game paper sheet... and I make a form based on a proc with entry boxes implemented similar to the sheet of paper. I don't want to have to send to the server for each journal line, so I do about 70 boxes... (I was going to add research and javascript to fill in names etc.) its all good so far.

    Then, I decided to add a title to the columns of entries rather than affix a label to the left of each. But no... After several hours of play, I can't do the columns in the row to the top! This is really so difficult? I think I tried all the relevant options vaguely under input boxes or display fields.

    You can see my work do not (well it is not supposed to yet) columns ugly input boxes that now are separated by wide open spaces here:

    http://www.applicationoutsource.com/Apex/f?p=142:3:2332495683840622:
    (If I get rid of the first line of labels, that bunch again instead of input boxes separated by large amounts of white space.)

    It seems ridiculously difficult to solve this problem, but maybe I'm missing something basic? He took my grand plans for a long time problems!

    You have created your articles in the form of text boxes. How an element works (with default alignment of the label to the left) is:

    
    

    So if you have an element that has a label and a text box and also an item with just a label, the labels will be align, and text boxes.
    If you end up with:

    
     [TETXBOX]
    

    To resolve this problem, set the value of the item view only as the title you want and don't have anything as long as the value of the label. Make sure you get effectively:

     [HEADING]
           [TEXTBOX]
    

    In addition, there are ways easier to do as dynamically generate the elements that make it much easier to maintain, but as you say you are new to APEX then it might be a little over your head at the minute (with all due respect - no offence).

  • Compatible with this PC webcam?

    Hi I want a webcam for my PC its CQ1140UKy 64 bit windows7 operating system

    There are many on the market, but I would like to know is it special, the one that works best with this PC or one will be ok? eplim x 500

    Hello

    Are you talking about EXTERNAL/USB webcam? Most of them should work on your machine. I would like to buy Microsoft or Logitech products. There are several price ranges too and please do not try the full HD ones.

    Kind regards.

  • Block diagram of... block diagram

    Hi, I need your help. IM the wrong person for this post, but I have to do, so I depend on your help. I need to explain how LabView (pasted below) program works, but I don't understand it myself I would like to ask if someone can create a simplified block diagram of the pattern-block LV I paste it here. I appreciate all the help and please take considaration I am short on time

    https://DL.dropbox.com/s/yd10z7yorxvbzux/LVdiagram.jpg

    It is a counter. Meter of photons to be exact.

    Hi, Rodolphe,.

    I will try to explain briefly what is this application:

    Following materials may help you understand the underlying concepts:

    http://www.NI.com/PDF/manuals/371022k.PDF

    It is the manual of series M - chapters 6.7 and 8 explains how digital lines, meter and what is a PFI.

    When you open the block diagram of your application, you can see several branches ranging from left to write.

    The first one on the top is to create a path to a file. This path will be used to write data to a binary file. The data represent the number of impulses which can be counted as edges rising a signal connected to the meter to 1. This information CA be read if you follow the logic on the second branch from left to right, where the first VI is CI INT edges (edges of counter), and it will count up, on a rising edge of the signal connected to CTR1.

    Later, there is another task created for counter 3, that generates impulses. The pulse seems to have 10uS length and 50% duty cycle. The signal generated by this counter is used as sample clock for measure and 1 meter. In addition, the same meter signal 3 will be used by 4 meter from the digital dashboard and create a clock which will clock the timed loop. Basically, the frequency of the timed loop is given by the task on 4 meter which counts pulses generated with meter 3.

    The 3rd branch from left to right, creates three tasks on three outputs digital: Line 0, 1 and 2 where it is controlled by three buttons F0, F1 and F2. Basically, your timed loop will be a specific iteration, and every iteration buttons will be read and will be updated to the specified digital output above.

    Whenver there is a mistake or the button is pressed, your application stops and closes the binary file and dealocate resources used.

    I invite you to also look in the above manual.

    Best regards

    Ion R.

  • Attempts to display unsigned numbers and signs in single chart

    Hi all

    I am trying to find a solution to a single graph between the display of a signed integer an integer not signed and switching.

    Basically, I have a U16 source that comes from a table.  Some of the table is signed, some is not signed.  I break up the table in separate 'channels' and then graphically display in a chart (a ' channel' at the same time).  For testing purposes, the table is just several meters ranging from 0 to 65535 over and over again for non signed, and simply by putting the source through a converter I16 me gives-32 768 to 32 768 for the signature.

    My problem is I want to be able to see unsigned and signed data on the same chart; If I know that a 'channel' is not signed, then a switch is a way, and if the 'channel' is signed then I press the switch.  I wonder how, if it's possible to 'move' between the unsigned source and the converted data to the converter I16.  I tried a box Structure with a switch, but the data sticks as U16.  I tried the Select function, but entries must be of the same type, which does not work either.

    The easy solution would be to have two graphs, but this seems to be a workaround hack rather than a solution to the problem.  If anyone could help, please let me know if there is a solution on how to do it in style with Labview!  Any questions, let me know.  I put a screenshot to describe what I'm trying.

    This is how...

  • Virus impossible.

    Presario SR2032X with XP SR2 when installed.

    A bad virus / redirect issues.  I tried recovery with the backup data. Did not work.

    Now, even with the format and the recovery, redirection is always a problem. Cannot get rid of the problem. Tried several times, ranging from what is done after restoration. Windows update, run malwarebytes, use chrome instead of IE, etc, etc...

    Tried to remove the battery and the memory before retrieving. System seems OK after recovering, but slowly, redirection problem worsens.

    I tried Google Chrome. Seems problem is lurking in the recovery partition. I have no DVD system and can only flow of partition.

    So suggestions will be welcome and also, can I use XP from another system to do a fresh install and use numbers fresh on the case to reinstall XP. I could track down all the drivers I needes separately and install it if necessary.

    ?? Thank you.

    According to this page: http://support.hp.com/us-en/document/c00758095

    This system provided with Microsoft Windows XP Media Center Edition 2005 Update Rollup 2.  In response to the question "can I use XP from another system to do a fresh install and use the numbers on the case to reinstall fresh XP" No. what OS would not WinXP Media Center and the key will not work.

    Assuming that the recovery process is DVD run, wouldn't the virus left.  If the restoration is the recovery partition, I would be scanning the partition in safe mode with one of them:

    http://www.techmixer.com/free-bootable-antivirus-rescue-CDs-download-list/

    Format the c:\ drive, and rerun the recovery...

  • Diskpart.exe not extending XP SP3 volume

    I have an old computer with a hard drive that had been partitioned.  The operating system (XP SP3) is on the C: drive, but the C: drive has been allocated only 10 GB on a hard disk of 120 GB.  I deleted the D: partition and made unallocated space, but Diskpart still will not extend the C: drive at all.
    According to the MS website, Diskpart will not extend a volume on a dynamic disk in XP, only a basic disk.  So I checked C: is formatted as a basic disk.  Then, I did all the other disk unallocated space partition and reformatted it as a basic disk.  Then I deleted the partition and once again tried to extend C:.  DiskPart extend yet not the volume, even following the instructions of Diskpart explicitly.
    So, I am now considering making one unallocated space partition again, and then ghosts the c: on the new partition and delete the c: drive.  There are no programs other than the operating system on the C: drive, worth the savings.
    I'm trying to make the usable hard drive, so I can sell this computer.
    Another way I can try to extend the C: volume on the entire disk?
    Is my drive ghost idea worth?

    There are several third-party utilities that can either clone a partition with the same size or larger large size partition (see, for example, http://www.todo-backup.com/products/features/partition-clone.htm).  If you did that, then Yes, you could swap in the new drive and abandon the old disk or wipe, reformat and use it for a backup somewhere drive.

    There are also several score of third-party application manager that will allows to extend system partition / boot in the adjacent free space.  See, for example, http://www.partition-tool.com/easeus-partition-manager/features.htm (this app has two benefits: it's free and it is also able to do a cloning operation if you prefer).

  • Need to reinstall XP but have no CD

    I have an old computer with XP on it I want to make a donation to a school.  I do not have a XP CD and want to erase the disc to clean before giving it away.  Other ways to remove any personal information?

    Hello

    You can refer to the following steps:

    1. Set the Bios to boot from the CD-ROM as first boot device.
    2. Place the CD in the CD-ROM and the re-Boot drive.
    3. Listen for the prompt "Press any key to boot from the CD" press as gone soon (ignore when the message appears on all restart) (you get this prompt if there is a XP/OS installed on the HARD disk)
    4. Installation of Windows (file charges)
    5. To install XP now press "enter".
    6. Press F8 to license.
    7. To continue the installation, a new copy of windows without repairing, press "ESC".
    8. For a new or unpartitioned drive, press 'c '.
    9. For a player who has partitions, operating system or any data on this subject, you must press "D" to delete the partition and start with a clean drive.
    10. Press "enter".
    11. You will be prompted again, tap on ' L "(vous allez faire ceci pour chaque partition), you are now ready to partition and format." "
    12. Press 'C '.
    13. To create a new partition, enter a size below and press 'Enter' (Note = You can create several score here or press 'Enter' to use the entire disk.)
    14. To set up windows on the selected partition, press "enter".
    15. Select the NTFS format with quick option, (must be the selection at the top of the page)
    16. Tap on "" enter ".
    17. Wait for form to fill out.
    18. Computer will start to copy the files in the installation files (this may take several minutes)
    19. Computer restarts, do not press any key to boot from the CD-ROM when you are prompted.
    20. Follow the on-screen instructions to complete the windows loading.
  • Error: bad or lack of shell startup

    original title: error starting

    "Bad or missing command interpreter", and "Enter the correct name of the shell" "has > _", rises while Iam trying to start my computer. ""

    Hello

    A Windows computer may become unbootable for several reasons, ranging from an incorrect configuration on a damaged hard disk.

    Note: If it has been a hard drive related question, chances are that you may lose all your data, which still needs to apply your previous backup.

    The error above can occur in a variety of situations, some of which have been listed under:

    ·         The computer tries to boot from a non bootable floppy or CD present in the drive.

    ·         Hard drive has not been correctly configured in the CMOS.

    ·         One of the drvspace.bin command.com, io.sys and msdos.sys files is missing or damaged.

    ·         The hard drive is damaged MBR or partition table is damaged

    Solutions to given problems are as below:

    Step 1: make sure that no diskette or CD is in your computer when you try to start your computer.

    Step 2: Configure the options to start properly. Is the boot sequence right-'Disk', 'Hard', 'CD', and ' network

    NOTE: changes to the BIOS/complementary metal oxide semiconductor (CMOS) settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    Step 3: Repair the master boot record by using the Windows XP Recovery Console, the command fixmbr.

    a. start your computer with a Windows repair or installation disk.

    b. at the command prompt, run' / fixmbr' command without the quotation marks.

    How to install and use the recovery console in Windows XP:http://support.microsoft.com/kb/307654/

    Diana

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • How can I insert a google doc jpg in an email, not as an attachment.

    I have a google doc that is a "flyer" in the color I want to insert in an email, a page rather thanuse as an attachment. How can I do? Anne063 is an adobe document. I want to do a promotional mailing to my list of clients who are hurt at the opening

  • My screen turned upside down. How can I fix it?

    overview screen upside down My vision of the screen turned upside down!  I must have done something, but I can't find out how to return to normal. Please advise me how to do this action. Thank you Warren

  • Multiple SSID in Linksys E2500

    I just bought a Linksys E2500, and I'm trying to set up several top SSID. The "guest" mode does not work for me because I want an SSID to use WPA and the other to use WEP, but the ability to set different encryption based on frequency GHz of the conn

  • I moved to Australia and equivalent printers cartridges give me an error message

    I have a British original Deskjet F4580 taking HP 300 series ink cartridges.  HP Australia recommend HP 60 cartridges local equivalent.  They fit perfectly, but I get an error message indicating that they are incompatible.  I can't use the Australian

  • The App initialization: when and where?

    In a recent update BB10, I noticed that, if an application is not fully initialize in the 5-6 seconds that newspapers appears: forensics_logworthy_state: fixing error 2, no such file or directory, bail And the app seems to hang. It took a while to fi