DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 10

Thread: simple %(math) problem

  1. #1
    Join Date
    Jan 2001
    Posts
    157
    I have a simple mathematical question that I'm fighting with.
    Can any one help?

    Question
    ---------
    In terms of percentage, what does this number mean
    .008333333

    I ran a query and I'm supposed to get less than 4%. But I received
    this output .008333333. So I'm wondering if its more than 4%. How do
    determine the percentage based on a value like this

  2. #2
    Join Date
    Jul 2000
    Location
    Oxford, OH
    Posts
    117
    Exactly what is the calculation you are doing?

    It looks to me like it's probably around 8/10's of 1%
    _________________________
    Joe Ramsey
    Senior Database Administrator
    dbaDirect, Inc.
    (877)687-3227

  3. #3
    Join Date
    Jan 2001
    Posts
    157
    SQL> select d.value/m.value
    2 from v$sysstat d, v$sysstat m
    3 where d.name = 'sorts (disk)'
    4 and m.name = 'sorts (memory)';

    D.VALUE/M.VALUE
    ---------------
    .00833333

  4. #4
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    o.K now it makes sense. Modify your query to be as follows


    select (d.value/m.value) *100
    from v$sysstat d, v$sysstat m
    where d.name = 'sorts (disk)'
    and m.name = 'sorts (memory)';

    This would give you .8% < 4%

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  5. #5
    Join Date
    Jan 2001
    Posts
    157
    I'm sure the answer below means 7% right?

    SQL> select (d.value/m.value) *100
    2 from v$sysstat d, v$sysstat m
    3 where d.name = 'sorts (disk)'
    4 and m.name = 'sorts (memory)';

    (D.VALUE/M.VALUE)*100
    ---------------------
    .78125

  6. #6
    Join Date
    Oct 2000
    Posts
    123
    Originally posted by clinton
    I'm sure the answer below means 7% right?

    SQL> select (d.value/m.value) *100
    2 from v$sysstat d, v$sysstat m
    3 where d.name = 'sorts (disk)'
    4 and m.name = 'sorts (memory)';

    (D.VALUE/M.VALUE)*100
    ---------------------
    .78125
    it should be: .078125 ===> 7.8%

  7. #7
    Join Date
    Jul 2000
    Posts
    296
    No 0.78%, (d.value/m.value) *100 is the percentage.

    select (d.value/m.value) *100 "Percentage"
    from v$sysstat d, v$sysstat m
    where d.name = 'sorts (disk)'
    and m.name = 'sorts (memory)';





  8. #8
    Join Date
    Jan 2001
    Posts
    157
    ok. so based on this out put, what would you say the percentage is?
    D.VALUE/M.VALUE)*100
    ---------------------
    .78125

  9. #9
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    It would be .78%.

    50% of 100 would be (50/100) * 100 = 50

    10% of 40 would be (10/100) * 40 = .40

    In short

    (value/total_value) * 100 = percentage

    Hope this would help you to strainghten your math

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


  10. #10
    Join Date
    Jul 2000
    Location
    Oxford, OH
    Posts
    117

    Exclamation

    This thread is becoming terribly scary
    _________________________
    Joe Ramsey
    Senior Database Administrator
    dbaDirect, Inc.
    (877)687-3227

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width