Skip to Content
SQL for Data Analytics - Third Edition
book

SQL for Data Analytics - Third Edition

by Jun Shan, Matt Goldwasser, Upom Malik, Benjamin Johnston
August 2022
Beginner to intermediate
540 pages
9h 48m
English
Packt Publishing
Content preview from SQL for Data Analytics - Third Edition

Appendix

1. Understanding and Describing Data

Activity 1.01: Classifying a New Dataset

Solution:

  1. The unit of observation is a car sale.
  2. Date and Sales Amount are quantitative, while Make is qualitative.

While there could be many ways to convert Make into numeric data, one commonly accepted method would be to map each of the Make types to a number. For instance, Ford could map to 1, Honda could map to 2, Mazda could map to 3, Toyota could map to 4, Mercedes could map to 5, and Chevy could map to 6.

Activity 1.02: Exploring Dealership Sales Data

Solution:

  1. Open Microsoft Excel to a blank workbook.
  2. Go to the Data tab and click on Get Data | From File | From Text/CSV.
  3. Find the path to the dealerships.csv file and click on Import.
  4. In the file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Master SQL for Data Analysis

Master SQL for Data Analysis

Idan Gabrieli
Analytics Engineering with SQL and dbt

Analytics Engineering with SQL and dbt

Rui Pedro Machado, Helder Russa
SQL for Data Analysis

SQL for Data Analysis

Cathy Tanimura

Publisher Resources

ISBN: 9781801812870Supplemental Content