From 54bd9db8251ecba2e7d25cd0d86f033fddd35366 Mon Sep 17 00:00:00 2001 From: bytesparallel Date: Mon, 21 Feb 2022 13:52:12 -0600 Subject: [PATCH] savin completed problem 3 --- brazil_customers_invoices.sql | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/brazil_customers_invoices.sql b/brazil_customers_invoices.sql index 7a4572b..810a065 100644 --- a/brazil_customers_invoices.sql +++ b/brazil_customers_invoices.sql @@ -1,4 +1,12 @@ SELECT - CONCAT_WS("-", "FirstName", "LastName") AS FULLNAME, CustomerId, InvoiceId, InvoiceDate, BillingCountry + Customer.FirstName, Customer.LastName, Invoice.InvoiceId, Invoice.InvoiceDate, Invoice.BillingCountry FROM - Customer, Invoice + Invoice +INNER JOIN + Customer +ON + Invoice.CustomerId = Customer.CustomerId +WHERE + Invoice.BillingCountry = 'Brazil' +ORDER BY + LastName ASC; \ No newline at end of file