Skip to Content
SQL for Data Scientists
book

SQL for Data Scientists

by Renee M. P. Teate
September 2021
Beginner
288 pages
6h 54m
English
Wiley
Content preview from SQL for Data Scientists

CHAPTER 10Building SQL Datasets for Analytical Reporting

In previous chapters, we covered basic SQL SELECT syntax and started to use SQL to construct datasets to answer specific questions. In the data analysis world, being asked questions, exploring a database, writing SQL statements to find and pull the data needed to determine the answers, and conducting the analysis of that data to calculate the answers to the questions, is called ad-hoc reporting.

I often say in my data science conference presentations that the process depicted in Figure 10.1 is what is expected of any data analyst or data scientist: to be able to listen to a question from a business stakeholder, determine how it might be answered using data from the database, retrieve the data needed to answer it, calculate the answers, and present that result in a form that the business stakeholder can understand and use to make decisions.

Schematic illustration of business questions and the corresponding answer.

Figure 10.1

You now know enough SQL to answer some basic ad-hoc questions about what is occurring at the fictional farmer’s market using the demonstration database by filtering, joining, and summarizing the data.

In the remaining chapters, we'll take those skills to the next level and demonstrate how to think through multiple analysis questions, simulating what it might be like to write queries to answer a question posed by a business stakeholder. We'll design and develop analytical ...

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

SQL for Data Analysis

SQL for Data Analysis

Cathy Tanimura
SQL for Data Analytics - Third Edition

SQL for Data Analytics - Third Edition

Jun Shan, Matt Goldwasser, Upom Malik, Benjamin Johnston
Practical SQL

Practical SQL

Anthony DeBarros

Publisher Resources

ISBN: 9781119669364Purchase Link