I am struggling with an sql and need some ideas...
I have a table with hostname,dbname,table,size,date for all tables by db/host
I calculate the increase size of tables compared to data from previous month
so far no problem
but I would like to get only the top 10 growing tables by host/db
using fetch first 10 rows would return only top 10 from any db or order sequence
is there a possibility to apply some filter on the result of group by - similar to having.. but fetching only top 10 by group
host1,db1,table1,inc_size
host1,db1,table2,inc_size
.. 8 more
host2,db2,table1,inc_size
...
if you have any idea or hint, already thanks for all update
------------------------------
Thanks for all answers
Best Regards,
Guy Przytula
------------------------------
#Db2