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