Skip to content

Instantly share code, notes, and snippets.

@sqlparser
Created March 25, 2014 09:26
Show Gist options
  • Save sqlparser/9758026 to your computer and use it in GitHub Desktop.
Save sqlparser/9758026 to your computer and use it in GitHub Desktop.
select as subquery demo code
SELECT SUM (Sales) FROM Store_Information
WHERE Store_Name IN
(
SELECT Store_Name FROM Geography
WHERE Region_Name = 'West'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment