The SQL Workshop by Frank Solomon Prashanth Jayaram and Awni Al Saqqa
Author:Frank Solomon, Prashanth Jayaram, and Awni Al Saqqa
Language: eng
Format: epub, mobi
Publisher: Packt Publishing Pvt ltd
Published: 2019-12-27T00:00:00+00:00
Figure 7.2: A MySQL subquery
We'll focus on the inner query—the subquery—first, and then work it out from there. In this query, we started with the following SQL query, which shows all the ProductID values in the OrderItems table:
SELECT ProductID FROM OrderItems
We placed this query inside parentheses to make it a subquery. In the outer query, the SELECT and FROM clauses have the columns from the Products table that we require. The outer query WHERE clause uses NOT IN to filter out the Products table rows that don't exist in the subquery. The ORDER BY clause sorted the result set by ProductID.
Download
The SQL Workshop by Frank Solomon Prashanth Jayaram and Awni Al Saqqa.mobi
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Coding Theory | Localization |
Logic | Object-Oriented Design |
Performance Optimization | Quality Control |
Reengineering | Robohelp |
Software Development | Software Reuse |
Structured Design | Testing |
Tools | UML |
Deep Learning with Python by François Chollet(12589)
Hello! Python by Anthony Briggs(9926)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9800)
The Mikado Method by Ola Ellnestam Daniel Brolund(9786)
Dependency Injection in .NET by Mark Seemann(9347)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7771)
Grails in Action by Glen Smith Peter Ledbrook(7704)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7566)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7152)
Microservices with Go by Alexander Shuiskov(6913)
Practical Design Patterns for Java Developers by Miroslav Wengner(6833)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6774)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6423)
Angular Projects - Third Edition by Aristeidis Bampakos(6191)
The Art of Crafting User Stories by The Art of Crafting User Stories(5711)
NetSuite for Consultants - Second Edition by Peter Ries(5642)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5453)
Kotlin in Action by Dmitry Jemerov(5073)
