I'm very new to SQL and I'm trying to learn how to use IN operator.
There are 2 tables(customers,nation) but the nation name information is not included in the customers table. In customers table there is only the nation's ID. So my approach to get the nation name is the following :
SELECT C_ID,C_NAME,N_NAME
FROM customers,nation
WHERE N_NAME in(SELECT N_NAME FROM nation WHERE nation.N_NAME = "GERMANY")
The problem is that this query returns a table with all of the customers from all nations, and in the N_NAME column it says only "GERMANY" even there are lot of different nationalities.
The desired result is a table with those customers that are from Germany.