Monitoring memory usage
The QUERY_EXECUTIONS table has all the information required to analyze a query except memory used. For memory consumption, we need to check the RESOURCE_ACQUISITIONS, which shows the memory consumed for query per node. Is there a way to view the total memory consumed by a query in the QUERY_EXECUTIONS table?
Optimizing Query Performance and Resource Pool Tuning