Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets   Hide Images

Rate this post by selecting a number. 1 is the worst and 5 is the best.

    (Worst)    1    2    3    4    5     (Best)

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Jaffaa
Mudiripoyina Bewarse
Username: Jaffaa

Post Number: 23492
Registered: 03-2008
Posted From: 204.14.239.75

Rating: N/A
Votes: 0

Posted on Monday, March 21, 2016 - 4:06 pm:   

select target_name, value, collection_timestamp from mgmt$metric_details where collection_timestamp > sysdate -1 and metric_label='Load' and column_label like 'CPU in User Mode%' and regexp_like(target_name, '^abc|^xyz|^lmn|^opq|^viv') order by 3 desc;

paina query vundhi

this is returning all the results that I want

collection_timestamp - date column

basic gaa naaku value average kaavali every 15 minutes interval ki and also group by target_name....also eedhanna date ki value NULL iithe 0.0 kindha thesukovali

output should be something like

TARGET_NAME AVG(VALUE) ROUND(COLLECT_TS)
abc123 1.1 2016-18-03 12:00
xyz234 1.4 2016-18-03 12:00
abc123 2.1 2016-18-03 12:15
xyz234 3.4 2016-18-03 12:15

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration