we tried to email the result of the query to an email address.
what method we can do , any example for reference.
Query:
SELECT * FROM [QueryProcessHistory] WHERE collection_time BETWEEN '2021-07-28 00:00:00.000' AND '2021-07-28 23:59:00.000' order by collection_time desc ;