Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Cracking the Data Science Interview

You're reading from  Cracking the Data Science Interview

Product type Book
Published in Feb 2024
Publisher Packt
ISBN-13 9781805120506
Pages 404 pages
Edition 1st Edition
Languages
Authors (2):
Leondra R. Gonzalez Leondra R. Gonzalez
Profile icon Leondra R. Gonzalez
Aaren Stubberfield Aaren Stubberfield
Profile icon Aaren Stubberfield
View More author details

Table of Contents (21) Chapters

Preface 1. Part 1: Breaking into the Data Science Field
2. Chapter 1: Exploring Today’s Modern Data Science Landscape 3. Chapter 2: Finding a Job in Data Science 4. Part 2: Manipulating and Managing Data
5. Chapter 3: Programming with Python 6. Chapter 4: Visualizing Data and Data Storytelling 7. Chapter 5: Querying Databases with SQL 8. Chapter 6: Scripting with Shell and Bash Commands in Linux 9. Chapter 7: Using Git for Version Control 10. Part 3: Exploring Artificial Intelligence
11. Chapter 8: Mining Data with Probability and Statistics 12. Chapter 9: Understanding Feature Engineering and Preparing Data for Modeling 13. Chapter 10: Mastering Machine Learning Concepts 14. Chapter 11: Building Networks with Deep Learning 15. Chapter 12: Implementing Machine Learning Solutions with MLOps 16. Part 4: Getting the Job
17. Chapter 13: Mastering the Interview Rounds 18. Chapter 14: Negotiating Compensation 19. Index 20. Other Books You May Enjoy

Analyzing subqueries and CTEs

SQL subqueries, also known as nested queries or inner queries, are queries that are embedded within the context of another SQL query. They are powerful tools for performing complex data manipulations that require one or more intermediary steps – that is, they are used for performing data manipulation operations that require multiple steps or depend on the result of an intermediary query.

That might sound complex and, indeed, subqueries can easily get very complicated. But once you know the rules of engagement, you’ll soon see that they’re very doable. Before implementing a subquery, ask yourself the following:

  • Where am I starting?
  • Where am I going?

If you can answer these two questions, you’ve won half the battle. The other half is determining what steps need to take place to get from point A (existing data) to point B (desired data). In this section, we will learn how to navigate multi-step queries with...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}