I have 2 tables in Mysql, INSCRICAO1 and INSCRICAO2 . Both have a field called COD that receives a user code.
A INSCRICAO1 saves the user's personal information INSCRICAO2 stores user's car information
I need to select only INSCRICAO1 from users who have cars, that is, they are also present in the INSCRICAO2 table.
How to do it, I tried with LEFT JOIN, but it gave an error.