I have two tables:
curso
curso_configurar
With the following structure:
My question is: I need to include within the curso_configurar
, the courses that will be configured, until then it is OK. However, when I add a new configuration, I can not list the course that has already been configured.
I tried to do this:
SELECT * FROM ('curso') LEFT JOIN 'curso_configurar' ON 'curso_configurar'.'cur_id'='curso'.'cur_id' WHERE 'curso_configurar'.'cur_id' NOT IN ('curso.cur_id') ORDER BY 'cur_titulo' ASC
In this case, only the courses that have already been configured are ready, I need to do the reverse, list the courses that were NOT configured.
How can I mount?