Activity 13.01 – Exporting report data to CSV for Excel
You are working for a newspaper, and as part of an article related to the inauguration of a new king, the reporter needs a list with the heads of state of all monarchies. The requested format is CSV, as that can be loaded in Excel and later incorporated into the article. Perform the following steps to implement the activity:
- Connect to the
world
database. - Select the right columns and filter out monarchies.
- Send the result to a file in the CSV format.
After implementing these steps, the expected output looks like the following:
Note
The solution for the activity can be found in the Appendix.