I want to get a query where Cve, Name and Exist, in one table I have the catalago and in another I have the ones that exist, therefore I want to get all the catalago but with an extra field that is in 1 those that exist and in 0 those that are
**tabla catalago:**CAMPOS
cve_ventana|nombre
**tabla roles** CAMPOS
fk_cve_Ventana
**NECESITO GENERAR ESTO:**
Cve_Ventana | Nombre | Existe
1 |carro |1 | <- que si existe en la tabla roles
2 |llantas |0 |<- no esta en la tabla roles
Quiero obtener todos los registro de la tabla T_Ventanas y los registros que no estén en T_Roles me los marque como "0" en Existe