Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A core SQL statement, SELECT retrieves data from one or more tables or other sources of row set data such as views or table-valued functions.
1
vote
2
answers
3k
views
Show values from list that are NOT returned by query
I just need the subset of the list that is NOT found in a SELECT query.
Pretending that the list I was given is: 'something_a', 'something_b', 'something_c', 'something_d'... … My intuition is to do something like this:
SELECT item FROM ('something_a', 'something_b', 'something_c', 'something_d')
WHERE item NOT IN (
SELECT appropriate_column FROM some_table
WHERE appropriate_column …