Topic: sql query
I have a small problem here, im not sure if its just because its monday or if it really is tricky but i shouldnt be to hard?
I have 2 tables, the first table has alot of rows and got a uniqe id-number.
the other tables contains one column with some numbers matching table1´s idnumber.
Now i want to select all rows in table 1 that does not have a matching number in table 2.
Like this:
Table 1:
1|bla|mu
2|asd|mu
3|dds|mu
4|ewr|mu
5|iu5|mu
6|kur|mu
7|weu|mu
8|uuu|mu
Table 2:
3
5
7
What i want out of this is:
1|bla|mu
2|asd|mu
4|ewr|mu
6|kur|mu
8|uuu|mu
Table 2 can also be completly empty.