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

Symbol_of_king
Kurra Bewarse
Username: Symbol_of_king

Post Number: 2121
Registered: 12-2005
Posted From: 70.192.193.239

Rating: N/A
Votes: 0

Posted on Wednesday, July 24, 2013 - 5:15 pm:   

select company,activity ? first_value(activity) over
(partition by company order by activity desc) updt_activity,
sum(amount) over (partition by company) updt_amount
from table_XYZ

Something similar to above should work...fyi..i am not 100% sure.

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