Reader small image

You're reading from  The MySQL Workshop

Product typeBook
Published inApr 2022
Reading LevelBeginner
PublisherPackt
ISBN-139781839214905
Edition1st Edition
Languages
Tools
Right arrow
Authors (2):
Thomas Pettit
Thomas Pettit
author image
Thomas Pettit

Thomas Pettit began developing software as a hobby. He changed tracks from being a truck driver to being a software developer by earning a graduation degree in software development at the age of 35. He taught basic computers in a community adult education centre in Melbourne for 2 years before commencing his software development career. Tom has worked for several government agencies including defense, law enforcement, and transport as well as large and small private businesses. Tom has mentored several up and coming software developers during his career and takes great joy in assisting others to improve their skills and further their career prospects.
Read more about Thomas Pettit

Scott Cosentino
Scott Cosentino
author image
Scott Cosentino

Scott Cosentino is a software developer and teacher currently working in computer security. Scott has worked extensively with both low- and high-level languages, working on operating system- and enterprise-level applications. Scott has a passion for teaching and currently writes and creates videos on computer security and other programming topics. He has developed an extensive library of courses and has taught over 45,000 students through courses with Udemy, Packt, and CodeRed. He maintains a blog on Medium, and is active on YouTube and LinkedIn, where he enjoys creating content and interacting with students.
Read more about Scott Cosentino

View More author details
Right arrow

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:

  1. Connect to the world database.
  2. Select the right columns and filter out monarchies.
  3. Send the result to a file in the CSV format.

After implementing these steps, the expected output looks like the following:

Figure 13.49 – The SELECT output to show government forms that are monarchies

Note

The solution for the activity can be found in the Appendix.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
The MySQL Workshop
Published in: Apr 2022Publisher: PacktISBN-13: 9781839214905

Authors (2)

author image
Thomas Pettit

Thomas Pettit began developing software as a hobby. He changed tracks from being a truck driver to being a software developer by earning a graduation degree in software development at the age of 35. He taught basic computers in a community adult education centre in Melbourne for 2 years before commencing his software development career. Tom has worked for several government agencies including defense, law enforcement, and transport as well as large and small private businesses. Tom has mentored several up and coming software developers during his career and takes great joy in assisting others to improve their skills and further their career prospects.
Read more about Thomas Pettit

author image
Scott Cosentino

Scott Cosentino is a software developer and teacher currently working in computer security. Scott has worked extensively with both low- and high-level languages, working on operating system- and enterprise-level applications. Scott has a passion for teaching and currently writes and creates videos on computer security and other programming topics. He has developed an extensive library of courses and has taught over 45,000 students through courses with Udemy, Packt, and CodeRed. He maintains a blog on Medium, and is active on YouTube and LinkedIn, where he enjoys creating content and interacting with students.
Read more about Scott Cosentino