Created
May 19, 2019 22:34
-
-
Save ArCiGo/c2b8a3242640dfb6d391b4c49ab65776 to your computer and use it in GitHub Desktop.
This file contains 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 ord.TotalAmount, | |
cus.FirstName, | |
cus.LastName, | |
cus.City, | |
cus.Country | |
FROM [ORDER] ord | |
RIGHT JOIN Customer cus ON ord.CustomerId = cus.Id | |
WHERE ord.TotalAmount IS NULL; | |
GO | |
/** Output **/ | |
TotalAmount FirstName LastName City Country | |
--------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- ---------------------------------------- | |
NULL Diego Roel Madrid Spain | |
NULL Marie Bertrand Paris France |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment