Good morning everyone ... Let's see who can help me with this simple query ... I have a database formula 1, in it there are two tables, one is cars and the other participation, the participation table has the key (codeCoche) foreign cars that participated in races in certain years. What they ask me is basically that they make a query that shows only the cars that did not participate in a race. I have done this but it does not run ..
SELECT codiCotxe
FROM formula1.Cotxe
WHERE not in(SELECT codiCotxe from formula1.Participació);
Gracuas in advance