I want to find out what are the queries that are currently under execution specific to a user or a group . I don't want to use view point . I need to achieve this functionality using a SQL.
Try this
select * from dbc.SessionInfo;
you'll have a list of request with their user and group
I hope to help you