Skip to Content
Leveling Up with SQL: Advanced Techniques for Transforming Data into Insights
book

Leveling Up with SQL: Advanced Techniques for Transforming Data into Insights

by Mark Simon
September 2023
Intermediate to advanced
466 pages
12h 33m
English
Apress
Content preview from Leveling Up with SQL: Advanced Techniques for Transforming Data into Insights
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
M. SimonLeveling Up with SQLhttps://doi.org/10.1007/978-1-4842-9685-1_7

7. Working with Subqueries and Common Table Expressions

Mark Simon1  
(1)
Ivanhoe VIC, VIC, Australia
 

Running a SELECT statement, assuming that there’s no error, gives you a result. That result is a virtual table, and it will have rows and columns.

For our purposes, we are interested in three possible virtual tables:
  • One row and one column: You get just one value, though technically it’s still in a table. We’ll call this a single value.

  • One column and multiple rows: When the time comes, we’ll call this a list.

  • Multiple rows and multiple columns: In this context, a single row with multiple ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Data Model Patterns: A Metadata Map

Data Model Patterns: A Metadata Map

David C. Hay
XML Schema Complete Reference, The

XML Schema Complete Reference, The

Cliff Binstock, Chris Galtenberg, Mike Wooding, Chris Dix, Mitchell Smith, Dave Peterson
Advanced Analytics with PySpark

Advanced Analytics with PySpark

Akash Tandon, Sandy Ryza, Uri Laserson, Sean Owen, Josh Wills

Publisher Resources

ISBN: 9781484296851Purchase LinkPublisher Website