Saving end of day changes

This commit is contained in:
2022-02-21 15:53:22 -06:00
parent 1f1fbbb3bb
commit 53f11e1a7b
2 changed files with 16 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
SELECT
INVOICE.Total, CUSTOMER.FirstName, CUSTOMER.LastName, EMPLOYEE.FirstName, Employee.LastName, Invoice.BillingCountry
FROM
((Customer
INNER JOIN
Employee ON Employee.EmployeeId = Customer.SupportRepId)
INNER JOIN
INVOICE ON INVOICE.CustomerId = Customer.CustomerId)
ORDER BY
INVOICE.Total DESC;
+6
View File
@@ -0,0 +1,6 @@
SELECT strftime('%Y', InvoiceDate) as Year,
COUNT(*) as InvoiceCount
FROM Invoice
WHERE strftime('%Y', InvoiceDate) = '2009'
OR strftime('%Y', InvoiceDate) = '2011'
GROUP BY strftime('%Y', InvoiceDate);