Database Activity Query, How to do this

hi @swarna

Hope if i am not getting wrong, you can go throgh with this link.

Regards…!!