Skip to content

Instantly share code, notes, and snippets.

@echristopherson
Created July 21, 2011 19:55
Show Gist options
  • Save echristopherson/1098054 to your computer and use it in GitHub Desktop.
Save echristopherson/1098054 to your computer and use it in GitHub Desktop.
SELECT Status, Title, [Comes with Title], Collection, Location, [Box Color]
FROM (
SELECT Status, Title, [Comes with Title], Collection, Location, [Box Color], Format
FROM [Order Table 2010/2011]
WHERE Status<>'ceased' AND Status<>'not renewed' AND Format<>'online'
UNION ALL
SELECT Status, Title, [Comes with Title], Collection, Location, [Box Color], Format
FROM [Free Magazines]
UNION ALL
SELECT Status, Title, [Comes with Title], Collection, Location, [Box Color], Format
FROM [Alternate names]
)
ORDER BY Title, Collection;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment