V$Rowcache getting low gets percentage

hi all,
i m getting increased getmisses in v$rowcache against dc_histrogram_defs
kindly tell me about dc_histrigram_defs
also the impacts of it on reponse time.
PARAMETER     GETS GETMISSES     PCT
dc_global_oids     4     2     50
dc_histogram_defs 60     45     25
Thanks

the hit ratio in rowcache drop when there query donot find the information about the objects in shared_pool.
this is because poor sql statements or lack of statistics in the dictionary tables . I think dc_histrogram_defs also regqard to dictionary and histogram term generally deal with indexes i think you should rebuld your indexes or analyze them and compute statistics. Moreover through tracing check your queries are using indexes or full table scan.
That I can tell you

Similar Messages

  • Numbers '08 Using formuals to get percentage

    I'm sure this is relatively easy but I'm new to spreadsheets so bear with me.
    I have a column of numbers. I am able to get the sum of the column. To the right of this column of numbers, I want to calculate the percentage of each row in relation to the overall sum. Is there an easy way to do this besides entering a unique formula in each row.
    RIght now I have about 100 rows and I'd prefer not to type the similar formula each time. This is the formula I'm using right now:
    =D2/SUM(D1:D282)*100
    The next row would have D3/SUM(D1:D282)*100, then D4, D5, etc....

    Hi jbresner,
    Yes, put the formula in the top cell of the column then press Return, now click to highlight that cell. In that cell you'll now see a little round thingy in the lower right corner. Drag that circle down all the rows you need to fill. The formula will be copied to each cell as you drag.
    Hope this helps you.
    Sincerely,
    RicD

  • How to get percentage difference between two matrices?

    Good day everyone, I just want to ask how to get the percentage difference between two binary matrices. This is for comparing two images converted to matrices in LabView. Thank you. 
    Solved!
    Go to Solution.

    pinkman wrote:
    Good day everyone, I just want to ask how to get the percentage difference between two binary matrices. This is for comparing two images converted to matrices in LabView. Thank you. 
    You probably converted it to a 2D array (A matrix in LabVIEW has a special meaning).
    "Binary" is not very well defined (unless you are looking for the number of bits that are different). What is the datatype? Was it a color image or a greyscale image? Are both arrays the same size?
    How do you define "percentage difference"? Which one of the two is the 100% reference?
    Do you want a new 2D array where each element is the difference of the second array compared to the first (or vice versa), expressed in percentages?
    Do you want to know what percentage of array elements are different between the two arrays?
    Do you want to know the average difference between all array elements?
    All possible interpretations can be easily solved with very little code, but you need to explain in more detail what you actually want?
    Here is a simple solution for case #2, for example (assuming the array have the same size, and we only want a rought estimate, rounded down to the nearest integer percent):
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    PCT-Difference.png ‏16 KB

  • BAM : Crosstab : Need to get percentage of row total for each cell

    Hi,
    I am new to BAM. I have a requirement for which I am using crosstab. Basically, I need to show number instances per human task per user. Human Task is the row header, user is the column header, and I am using count(instance id) to fetch the count of instances. I am able to show the sum of values for each row and column, but I also need to show the percentage for each cell(based on row total).
    I do not know if it is possible to fetch the total for further calculations. I believe the calculated field will be processed for each cell, and hence there will be no sum available.
    Also, crosstab does not have a percent of total aggregate function.
    Kindly advise.
    Regards,
    Himanshu

    Hi,
    For constructing summary, COLLECT is very useful.
    1. Create one new internal table STAB having two fields.
       a) licensetype
       b) cnt
    2. Suppose your original internal table is itab.
    Loop at ITAB.
    STAB-licensetype = itab-licensetype.
    STAB-CNT = 1.
    COLLECT STAB.
    EndLoop.
    3. In this way, you will get DISTINCT license types, and their count.
    Hope this helps.
    regards,
    amit m.

  • Group by hour and get percentage of value on a particular

    Hi All,
    Oracle 11g
    create table test_table_2 ( time_log TIMESTAMP(6), status number, names varchar2(500) );
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,1,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Paul');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Liza');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,0,'FN:Will,LN:June');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'6'hour ,0,'FN:Ann,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'5'hour ,0,'FN:John,LN:Blair');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'4'hour ,1,'FN:Peter,LN:Lloyd');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'3'hour ,1,'FN:Sam,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'2'hour ,0,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'1'hour ,0,'FN:Will,LN:Smith');
    In the above record I want to see the percenatge of status coulmn being 1 for a given hour.
    In other words in the above table
    curtime - 7 should give 25%
    curtime - 6 should give 0%
    curtime - 5 should give 0%
    curtime - 4 should give 100%
    Currently I am doing two queries
    1. grouping by hour for status being 1 and
    2. grouping by hour for status being 0
    and then calculating the percentage on java level.
    I thought it will be lot simpler if it can be done in one shot in sql itself.
    Appreciate your help with this.
    _Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Well, i wasn't sure what happened to curtime - 3, curtime -2 and curtime -1 ... but maybe this is a start for you.
    create table test_table_2 ( time_log TIMESTAMP(6), status number, names varchar2(30) );
    declare
      l_timestamp timestamp := systimestamp;
    begin
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,1,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Paul');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Liza');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,0,'FN:Will,LN:June');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'6'hour ,0,'FN:Ann,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'5'hour ,0,'FN:John,LN:Blair');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'4'hour ,1,'FN:Peter,LN:Lloyd');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'3'hour ,1,'FN:Sam,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'2'hour ,0,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'1'hour ,0,'FN:Will,LN:Smith');
    end;
    ME_XE?select
      time_log,
      count(case when status = 1 then 1 else null end) / count(*) * 100
    from test_table_2
    group by time_log
    order by time_log asc;
    TIME_LOG                                                                    COUNT(CASEWHENSTATUS=1THEN1ELSENULLEND)/COUNT(*)*100
    07-APR-10 08.46.22.557850 AM                                                                                                  25
    07-APR-10 09.46.22.557850 AM                                                                                                   0
    07-APR-10 10.46.22.557850 AM                                                                                                   0
    07-APR-10 11.46.22.557850 AM                                                                                                 100
    07-APR-10 12.46.22.557850 PM                                                                                                 100
    07-APR-10 01.46.22.557850 PM                                                                                                   0
    07-APR-10 02.46.22.557850 PM                                                                                                   0
    7 rows selected.
    Elapsed: 00:00:00.15

  • Get Percentages by Department

    Hi All. I have a query that brings in spend sum($$) data for all departments, say within Cosmetics for customers, this works, but I wanted to see their percentage cross-over spend again say Department 215, I am not sure how to do the best way (the most efficient-correct way), would appreciate some help!
    Using Oracle 10G, Here is what I currently have:
    I only want to see customer who spent > $0 in the last 12 months.
    select d.DEPT_NUMBER, sum (a.SPEND_12_MO) SUM_12_MO
    from a.DEPT_SPEND a, USER_VIEW b, DEPARTMENT_CLASS d
    where a.skey=b.skey
    and a.DEPT_NUMBER = d.DEPT_NUMBER
    and b.STORE_NUM is not null
    and d.DEPT_NUMBER IN (1,2,3,4,5,blablalba,alldepts)
    group by d.DEPT_NUMBER;
    Then maybe I can have another query that will Query #1 that would do the percentage cross-shopping against say Dept 215.
    So if in Query #1, I enter 20 departments, in Query #2 the result would give me an overall percentage cross-overs of 215 to the 20 depertments ? based on spend sum($$) ?
    Thank you!

    Hi,
    No doubt you have a ckear idea if what you want. To those of us who have not been working with your tables or this particular problem for a long time, it is a riddle, wrapped in a mystery, inside an enigma.
    Whenever you have a question, it helps to post:
    (1) The version of Oracle (and any other relevant software) you're using (You did this.)
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data
    (4) Your best attempt so far (formatted) (You posted this, but since it's unformated, it's very hard to read.)
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    If you can present your problem using commonly available tables (for example, tables in scott schema, or views in the data dictionary), then you can omit (2).
    Formatted tabular output is okay for (3). Type these 6 characters:
    {code}
    (small letters only, inside curly brackets) before and after formatted text, to preserve spacing.
    Simplify the problem if you can. For example, if your real query involves 20 depatments, post a problem with only 3 or 4.
    It looks like you were on the right track with the analytic SUM function and CASE, but I really don't understand the problem well enough to say.

  • Get Percentage Difference between 2 rows.

    Hello.  I'm trying to add a field to a report that shows the difference between 2 rows.  Example.
    Month Total
    %diff
    Aug 1000
    11%
    July 900
    The math behind is (1000-900)/900 or 11%.  I tried this:  
    SUM(Fields!Total.value - PREVIOUS(Fields!Total.value))/PREVIOUS(Fields!Total.value)
    This would work great if I could actually use PREVIOUS w/out errors.  Any ideas?
    Thank you.

    Hi EonHale,
    According to your description, you want to calculate the growth percentage for each month. Right?
    In this scenario, we just need to use current value minus previous value (use Previous function), then divide by previous value. Since it doesn't have previous value for the first records, so we can use IIF function and add condition in expression
    to return a null value. We have tested in our local environment with sample data. Please try the expression below:
    =IIF(Previous(Fields!Amt.Value) is nothing,nothing,(Fields!Amt.Value-previous(Fields!Amt.Value))/previous(Fields!Amt.Value))
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Getting percentages to display and work

    I have been having a issue where the user enters a number into the form, for example "23".  The user has to enter ".23" instead.  Is there a way for the user to be able to just enter "23"?  I am using LiveCycle 8.2.1 and have tried just about everything I can think of.  I am a novice when it comes to Adobe and would really appreciate some help.
    Thanks Dave

    In it what tab of the pattern do I put that in?  So far I was using this formula in javascript:
    if (this.rawValue != null) {
    this.rawValue = Math.abs(this.rawValue);
    if (this.rawValue >= 1) {
      this.rawValue = this.rawValue / 100;
    if (this.rawValue == null || this.rawValue <= 1)
    true;
    else
    false;
    I am not sure that is what I should be using.  I used your line but it still multiplies it by a 100. It now just says for example 36% but it still multiplies by 3600  How do I stop that?
    Thanks for your help

  • Macbook air (11 inch) shows very low battery  percentage when the charger is plugged in

    My macbook air cannot be used when the charger is plugged in.  The battery percentage will go all the way down to 0% very soon and the computer will shut down then. For example, it shows 1:40 left in the battery when I did not plug in the charger, but once I plug the charger in , it will show 0:43 left instantly. What might be the problem and how to resolve it?
    PS: the macbook air can be charged when I shut it down. And it is no problem when the battery is not empty and the charger is not plugged in.

    Thank you very much. Here is the information:
      Full Charge Capacity (mAh):          4128
      Cycle Count:          346
      Condition:          Normal
    Any other suggestions?
    Do I need to make an appointment with the Apple store genius bar?

  • How do you get a percentage score in the LMS using SCORM 2004 and CP6?

    I am having two issues since I upgraded to CP6. When I select Track Data at End, the courses never scores as complete in the LMS - it worked great in CP5.5.
    Also, in CP6 there is no option to record the score as a percentage using SCORM 2004, so all I get is Complete or Incomplete - I could get percentages in CP 5.5
    Does anyone have any ideas or advice? Am I doing something wrong here?
    I am using GreenLight from Silkroad for the LMS.
    Regards,
    Kevin

    Herald, fantastic news. SET LONG did the trick.
    But I had to put a very big value. 32000 was not enough. Otherwise some of the triggers (big ones) got cut off.
    This is my complete code which did it.
    SPOOL F:\Channa\zz_zzTemp\Binuka\OutPut.txt
    set trimspool on
    set pages 0
    set long *1000000000*
    set linesize 32767
    SET TERMOUT OFF
    SELECT DBMS_METADATA.GET_DDL('TRIGGER', TRIGGER_NAME, 'ABS')
    FROM ALL_TRIGGERS
    WHERE OWNER = 'ABS' AND trigger_name NOT LIKE 'BIN$%'
    SPOOL OUT
    THANKS A LOT. REALLY APPRECIATE IT.
    P.S: I had to include the NOT LIKE 'BIN$%' in the where clause because otherwise I got this error:
    ERROR:
    ORA-31603: object *"BIN$cqXDSqghrFngQKjAJAovgw==$0"* of type TRIGGER not found in
    schema "ABS"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA", line 2805
    ORA-06512: at "SYS.DBMS_METADATA", line 4333
    ORA-06512: at line 1
    no rows selected
    I THINK BIN$... triggers are dropped triggers in the DB recycle bin???
    Edited by: Channa on Feb 17, 2010 2:58 AM
    Edited by: Channa on Feb 17, 2010 3:01 AM

  • My 13" MacBook pro gets really hot without extended or heavy usage

    My 13" MacBook pro gets really hot without extended or heavy usage and the fan's noise is annoying, my friends say this is not normal
    Is it normal?
    It gets really hot especially when there is flash content

    I am also having what I feel are excessive temperatures and fans while doing nothing tasks like web browsing.
    Can anyone tell me what the reasonable operating ranges are for the various components?
    There is a program called "Tmperature Monitor" which is free and gives even more sensor readings than iStat Pro.
    Why does flash make it so hot?  I have this problem too.
    Also is it normal when connecting only one external display and just browsing the web for the GPU to be at 85-90C (194F)?
    Any idea why iStat always shows a lower battery percentage than OSX?
    Thanks

  • Getting pcpu from ps command

    I'm trying to get percentage CU over a larger period.
    Here is what I get using the elapse time and cpu time formula.
    (The format is pid, % CPU, virtual mem, mem, cpu time, elapsed time, args to the process)
    ps -efo pid,pcpu,vsz,rss,time,etime,args | grep mypro
    7620 18.3 361976 345400 07:37:45 12:25:23 mypro
    (wait for some time)
    ps -efo pid,pcpu,vsz,rss,time,etime,args | grep mypro
    7620 18.2 361976 345400 07:37:50 12:25:30 mypro
    The delta for elapsed time is 12:25:30 - 12:25:23 = 7 sec
    The delta for CPU time is 07:37:50 - 07:37:45 = 5 sec.
    The percentage CPU is 100*5/7 = 71 %
    This appears to be 4x the number of CPUs.
    I�m not finding any google to confirm this. Any help would be great!.
    My problems are:
    1. The figures given by pcpu (18.2 or 18.3%) doesn't match with the above calculation (71%) I would like to know if my formula is good :|
    2. If the above formula has to do with the number of CPUs, can I get that within the ps command itself?
    thanks,
    -Vikrantl

    Basically I want to log CPU percentage by a certain process every 10 minutes.
    That means, either I can take the snapshot of the CPU% using top or ps readymade values
    OR
    use the elapsed time and the CPU time to get the average for 10 mins.
    Say at t=0sec the proc1 was using 90% CPU, from t=5 mins, it started using 30% CPU
    So now the average for last 10 minutes is 60%, I want this figure.
    Does any doc. states that the time field from ps actually calculates the total of time for all the processors together?
    What would the time field display if this process proc1 consumes 5 out of 10 minutes on CPU#1, 10 out of 10 minutes on CPU#2, and zero on remaining two CPUs ? WOuld it be 10 minutes or 15 or 20 minutes?

  • Help with multiple date percentage report

    Dear all,
    I am having problems with getting percentage right on my report which is set to YTD however I am counting records for Last 5 days, Last 4 weeks and Current Date.
    I am getting the records perfectly right as I have created 3 different Groups for them. The Running Totals are counting the correct number of records.
    As I have two Running totals for each job (Credit Job + Free of Charge Job), these two jobs are getting added up in the report.
    For example
    YTD formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 5 Days formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 4 Weeks formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Current Date formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    To get the grand total of these records, I have created another formula which counts all the above YTD records, L5D records and displays them in the report footer. Grand Total is showing up correctly.
    Now, What I want is the percentage of each record, i.e. the percentage of YTD records, L5D records etc.
    I have created a formula which counts the percentage but incorrectly.
    Here is the formula
    Whileprintingrecords;
    Numbervar b:=0;
    numbervar n:=0;
    numbervar m:=0;
    b:={@TotalJobsFOCRL5D}; // this is total job, (Credit+Free of charge jobs)
    n:={@TotalJobsFOCRL5DGT}; //GT is the grand total showing in report footer
    If b=0 then 0 else //if total jobs = 0 then answer is 0
    m:=(b/n)*100; // divide total jobs with grand total
    totext(m,2)+"%"; //show as percentage
    This formula does show the percentage but divides each job by itself. So if Total Jobs = 9 then it shows 100% whereas Grand Total is 479.
    Could someone please help me getting the correct percentage.
    The percentage formula is placed on the respective group footer.
    Regards
    Jehanzeb

    closing no reply

  • How calculate the percentage of area...

    Hi,
    I have 4 tables:
    Tab AREA_TI
    LS_ID          FL     AREA
    EMS00046     P01     2.995,09
    EMS00046     P02     0,78
    EMS00046     PTE     1.435,48
    EMS00046     S01     1.684,80
    EMS00046     S02     1.694,12
    EMS00050     P01     1.111,60
    EMS00050     P02     1.054,16
    EMS00050     P03     1.117,05
    EMS00050     P04     1.087,24
    EMS00050     P05     1.117,85
    EMS00050     P06     646,99
    EMS00050     P07     249,48
    EMS00050     PTE     593,35
    EMS00050     S01     91,15
    EMS00011     P02     446,90
    EMS00021     PTE     0,71SUM AREA_TI is:
    LS_ID          SUM(AREA)
    EMS00011     446,90
    EMS00021     0,71
    EMS00046     7.810
    EMS00050     7.068Tab AREA_T0
    LS_ID          FL     AREA
    EMS00046     PTE     15,48
    EMS00050     PTE     15,33
    00001156     P01     3.379,82
    00001156     P02     3.731,25
    00001156     P03     2.686,88
    00001156     PTE     2.279,49
    00001156     S01     7.341,05SUM AREA_T0 is:
    LS_ID          SUM(AREA)
    00001156     19.418
    EMS00046     15,48
    EMS00050     15,33Tab AREA_FI
    LS_ID          FL     AREA
    04600411     P01     785,64
    04600411     P02     829,72
    04600411     P03     832,36
    04600411     PCO     11,88
    04600411     PTE     473,91
    04600411     S01     1.740,42SUM AREA_FI is:
    LS_ID          SUM(AREA)
    04600411     4.673Tab AREA_EM
    LS_ID          FL     AREA
    00307374     P01     4.269,59
    00307374     P02     8.362,79
    00307374     P03     770,96
    00307374     PTE     7.292,11
    00307374     S01     1.425,90
    00602037     P01     3.364,47
    00602037     PTE     9.764,71
    00602037     S01     75,17SUM AREA_EM is:
    LS_ID          SUM(AREA)
    00307374     22.121
    00602037     13.204I'd like to get these results:
    LS_ID      AREA_TI AREA_T0 AREA_FI AREA_EM  AREA_TOT  PERC_T0   PERC_FI  PERC_TI   PERC_EM
    EMS00011  446,90    0     0          0     446,90                          1                       
    EMS00021   0,71     0     0          0     0,71                                1
    EMS00046  7810    15,48   0          0     7825,75  0,00197            0,99803
    EMS00050  7068    15,33   0          0     7083,33  0,00216            0,99784
    00001156   0      19418   0          0     19418        1                                   
    04600411   0        0     4673       0        4673                  1
    00307374   0        0     0       22121    22121                                    1
    00602037   0        0     0       13204    13204                                    1PERC_T0=AREA_T0/AREA_TOT
    PERC_FI=AREA_FI/AREA_TOT
    PERC_TI=AREA_TI/AREA_TOT
    PERC_EM=AREA_EM/AREA_TOT
    I tried this:
    CREATE OR REPLACE VIEW PERC_AREA ( LS_ID,
    AREA_T0, AREA_FI, AREA_EM, AREA_TI,
    AREA_TOT, PERC_T0, PERC_FI, PERC_TI,
    PERC_EM ) AS
    SELECT A.LS_ID,
    SUM(nvl(A.AREA,0)),
    SUM(nvl(B.AREA,0)),
    SUM(nvl(C.AREA,0)),
    SUM(nvl(D.AREA,0)),
    SUM(NVL(A.AREA,0)+NVL(B.AREA,0)+NVL(C.AREA,0)+NVL(D.AREA,0)),
    SUM(A.AREA)/SUM(NVL(A.AREA,0)+NVL(B.AREA,0)+NVL(C.AREA,0)+NVL(D.AREA,0)),
    SUM(B.AREA)/SUM(NVL(A.AREA,0)+NVL(B.AREA,0)+NVL(C.AREA,0)+NVL(D.AREA,0)),
    SUM(C.AREA)/SUM(NVL(A.AREA,0)+NVL(B.AREA,0)+NVL(C.AREA,0)+NVL(D.AREA,0)),
    SUM(D.AREA)/SUM(NVL(A.AREA,0)+NVL(B.AREA,0)+NVL(C.AREA,0)+NVL(D.AREA,0))
    FROM AREA_T0 A, AREA_FI B,AREA_TI C, AREA_EM D
    WHERE A.LS_ID=B.LS_ID(+)
    AND a.LS_ID=C.LS_ID(+)
    AND a.LS_ID=D.LS_ID(+)
    GROUP BY A.LS_ID
    How can I create a oracle view to get percentage of area FOR ALL LS_ID present in the 4 tables??
    Thanks!!!

    Hi Barbara
    your query seem not correct
    I tried this:
    CREATE OR REPLACE VIEW X ( LS_ID,
    AREA ) AS select ls_id, sum(area_locali) area
    from area_ti
    group by ls_id
    union all
    select ls_id, sum(area) area
    from area_t0
    group by ls_id
    union all
    select ls_id, sum(area) area
    from area_fi
    group by ls_id
    union all
    select ls_id, sum(area) area
    from area_em
    group by ls_id
    create or replace view PERC_AREA
    AS
    select x.ls_id,
    area_ti.sum area_ti,
    area_t0.sum area_t0,
    area_fi.sum area_fi,
    area_em.sum area_em,
    area_tot.sum area_tot,
    area_t0.sum/area_tot.sum perc_t0,
    area_fi.sum/area_tot.sum perc_fi,
    area_ti.sum/area_tot.sum perc_ti,
    area_em.sum/area_tot.sum perc_em,
    round(area_tot.sum*100/area_gen.sum,2) perc_lsid
    from (select distinct ls_id
    from x) x,
    (select ls_id, sum(area) sum
    from area_ti
    group by ls_id) area_ti,
    (select ls_id, sum(area) sum
    from area_t0
    group by ls_id) area_t0,
    (select ls_id, sum(area) sum
    from area_fi
    group by ls_id) area_fi,
    (select ls_id, sum(area) sum
    from area_em
    group by ls_id) area_em,
    (select ls_id, sum(area) sum
    from x
    group by ls_id) area_tot,
    (select sum(area) sum
    from x) area_gen
    where x.ls_id = area_ti.ls_id(+)
    and x.ls_id = area_t0.ls_id(+)
    and x.ls_id = area_fi.ls_id(+)
    and x.ls_id = area_em.ls_id(+)
    and x.ls_id = area_tot.ls_id(+)
    What do you think about solution??

  • Calculate Percentage from the result of row result

    Expert
    I want to calculate percentage from row result
    For Ex
    Vendor
    ID  Record Percentage
    1001                                1002                   1003                                sum
    A   10   10%                     B   20   20%        C   70     70%                  100         100% 
    X    50   25%                    Y   125  62.5%      Z   25     12.5%               200          100%
    I want to get percentage such as A percentage 10/(102070), , X percentage 50/(5012525)
    not A 10/(10207050125+25) = 3.33%
    Please help me to get the percentage which client want to
    thanks

    Dear Lemine.
    Try using this..
    Percentage Share of Result (%CT)
    %CT<Operand>
    Specifies how high the percentage share is in relation to the result. The result
    means the result of aggregation at the next level (interim result).
    %CT Incoming Orders specifies the share of incoming order values of each
    individual characteristic value (for example of each customer) in relation to
    the characteristic's result (for example, customer of a division).
    Percentage Share of Overall Result (%GT)
    %GT <Operand>
    Specifies how high the percentage share is in relation to the overall result.
    The overall result means the result of aggregation at the next level in the list.
    In the calculation of the overall result, the dynamic filters (filters that were
    not already defined in the Query Designer) are included.
    Hope this helps u..
    Best Regards,
    VVenkat,,

Maybe you are looking for

  • Can i use usa itunes in the uk if i have usa iphone 4s

    I'm inside the US and using US iTunes store on my iphone 4s (contract free). But I have an account without credit card number (for Us iTunes) and I wonder if I can use US iTunes store connected with this account outside the States (eg in Russia).

  • Get rid of duplicated songs in iTunes playlists

    Ive downloaded loads of songs in my iPod playlist and now im planning to transfer all of em to my PC.I figured out how to transfer songs but now i have another problem.Apparantly when u update songs in a playlist in iPod, if u add same files to the p

  • PSE 11

         After installing PSE 11, should you remove PSE 9 ?

  • Key photo in events

    ATV seem to ignore key photo when viewing synced photos from iPhoto. It just shows first photo in left to event title. Is there a way to fix this?

  • Dial up speeds every evening for weeks Tidewater, VA

    My DSL has slowed to dial up speeds beginning around 5 pm and flucuating widely in speed until 11 pm. I tried all the remedies for slow speed as I have done in the past but they have not helped. Any time I've had problems Verizon dsl it has been with