Export data from database in Excel sheet with the help of Shell script and automated the report

Export data from database in Excel sheet with the help of Shell script and automated the report every day in the mornig.

Can you re-state your request, including some samples of both the data and what you want to have happen?