I have a list, for instance: 1,2,5,6,8,12,15
I'm trying to come up with an SQL query that returns to me a list of numbers, from the previous list, not present in another list.
So, suppose I'm getting all id's from a table and those are: 1,3,7,8,15
The resultset should be: 2,5,6,12
Because those were the numbers not present in the second list, but present in the first.
I thought this one would be easy, but I'm stumped. Googling it has yielded no results I can use, just listing things about lists and left joins.