Hello @SPK545 , apologies for the delay. My suggestion to automate the process above will be to perform queries using REST endpoint of Azure resource graph as using logic app you can call a HTTP endpoint using Azure Logic App.
For the first process you can have a Reoccurrence trigger for your logic app and then perform the HTTP action as mentioned above to run the query and use the Azure SQL database connector for Logic app to insert the results.
For the second process you can run the query as mentioned above and then use data operation functionality of the Logic App to write a CSV table and use any Email connectors Like Gmail or Outlook to send the data out.
Please let me know if there are any concerns. Thank you!