This code works as expected and email the result of the query to the recipients:
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'ProfileName',
@recipients = 'name@mail.com',
@query = '
SELECT * FROM table
' ,
@subject = 'Query result';
Is there any way I can include the result from several queries in one email? I would like to execute 5 queries and list the result from each of them, one by one, in the email.