Código:
Con esta consulta obtengo el nombre y apellidos de la mujer o mujeres de un hombreselect id, nombre, apellidos from arbol where id in (17);
Código:
Con esta obtengo la fecha de matrimonio, que la guardo en otra tablaselect fecha from matrimonio where (idhombre = 16 or idmujer = 16) and (idhomnbre = 17 or idmujer = 17);
Código:
Quiero obtener el nombre/s de la pareja y la fecha/s de casamiento. Pero no estoy seguro de como hacerlo, graciasselect fecha from matrimonios where (idhombre = 16 or idmujer = 16) and (idhombre in (select id, nombre, apellidos from arbol where id in (17)) or idmujer in (select id, nombre, apellidos from arbol where id in (17)));
bichomen