Sorry if this is commonly asked or something, the confusing way to ask the question makes it hard for me to find the answer.
Example:
Table 1 has:
ID
1
1
1
1
2
2
3
3
4
5
5
6
6
Table 2 has:
ID
2
2
3
3
4
4
5
I want to query from Table 1 everything that is NOT in Table 2. Table 2 is also definitely a subset of table 1, so everthing in table 2 is also in table 1.
Results should pull out 1 and 6, Or maybe 1,1,1,6,6, whatever, I'm just trying to pull out the numbers that are not in Table 2. There are duplicates, so I put them in on purpose to illustrate. I have tried playing with "Distinct" Sql statement, but I don't know if that is how to achieve this, especially with duplicates.
What is this type of query called?
Thanks!
Example:
Table 1 has:
ID
1
1
1
1
2
2
3
3
4
5
5
6
6
Table 2 has:
ID
2
2
3
3
4
4
5
I want to query from Table 1 everything that is NOT in Table 2. Table 2 is also definitely a subset of table 1, so everthing in table 2 is also in table 1.
Results should pull out 1 and 6, Or maybe 1,1,1,6,6, whatever, I'm just trying to pull out the numbers that are not in Table 2. There are duplicates, so I put them in on purpose to illustrate. I have tried playing with "Distinct" Sql statement, but I don't know if that is how to achieve this, especially with duplicates.
What is this type of query called?
Thanks!