This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT FILHO.NMFILHO,MULHER.NMMULHER,HOMEM.NMHOMEM FROM | |
| FILHO LEFT JOIN MULHER ON | |
| FILHO.IDMULHER = MULHER.IDMULHER | |
| LEFT JOIN HOMEM ON | |
| FILHO.IDHOMEM = HOMEM.IDHOMEM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT MULHER.NMMULHER, FILHO.NMFILHO FROM | |
| MULHER LEFT JOIN FILHO ON | |
| MULHER.IDMULHER = FILHO.IDMULHER | |
| WHERE FILHO.IDMULHER IS NULL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT MULHER.NMMULHER, FILHO.NMFILHO FROM | |
| FILHO FULL OUTER JOIN MULHER ON | |
| FILHO.IDMULHER = MULHER.IDMULHER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT MULHER.NMMULHER, FILHO.NMFILHO FROM | |
| FILHO RIGHT JOIN MULHER ON | |
| FILHO.IDMULHER = MULHER.IDMULHER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT MULHER.NMMULHER, FILHO.NMFILHO FROM | |
| MULHER LEFT JOIN FILHO ON | |
| MULHER.IDMULHER = FILHO.IDMULHER |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT HOMEM.NMHOMEM, FILHO.NMFILHO FROM | |
| HOMEM INNER JOIN FILHO ON | |
| HOMEM.IDHOMEM = FILHO.IDHOMEM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INSERT INTO HOMEM (IDHOMEM, NMHOMEM) VALUES (1,'JOSE') | |
| INSERT INTO HOMEM (IDHOMEM, NMHOMEM) VALUES (2,'JOAO') | |
| INSERT INTO HOMEM (IDHOMEM, NMHOMEM) VALUES (3,'MANOEL') | |
| INSERT INTO HOMEM (IDHOMEM, NMHOMEM) VALUES (4,'SEBASTIAO') | |
| GO | |
| INSERT INTO MULHER (IDMULHER, NMMULHER) VALUES (1,'MARIA') | |
| INSERT INTO MULHER (IDMULHER, NMMULHER) VALUES (2,'MARCIA') | |
| INSERT INTO MULHER (IDMULHER, NMMULHER) VALUES (3,'ANA') | |
| INSERT INTO MULHER (IDMULHER, NMMULHER) VALUES (4,'LAURA') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE HOMEM ( | |
| IDHOMEM INT, | |
| NMHOMEM VARCHAR(50) | |
| ) | |
| GO | |
| CREATE TABLE MULHER ( | |
| IDMULHER INT, | |
| NMMULHER VARCHAR(50) | |
| ) |