Four queries using joins as well as a mix of single-row and aggregate functions
Used functions: UPPER, CONCAT, ROUND and SUM in 4 above queries from Task 1 and Task 2
UPPER in Query 1
CONCAT and UPPER in Query 2
CONCAT and ROUND in Query 3
SUM in Query 4
Four queries using a mix of single-row and aggregate functions
# tells you how many countries are listed
# FIRST person born IN list
# most recent death
# LENGTH OF the longest first_name
Finds the SUM of bytes and COUNT of files in directories.
CONCATENATES first and last names into a full name.
Finds the movie COUNT for each country in a pseudo table.
Finds LENGTH of movie and alt titles.
I didn't finish all of them, but I did my best!
This is a link to all of them.
Google Docs
Task 1 >> NATURAL JOIN SELECT * FROM Customers NATURAL JOIN Orders; --Task 2 >> INNER JOINS SELECT * FROM Orders INNER JOIN Products USING (ItemNumber); SELECT Orders.OrderNumber, Customers.Address, ItemNumber, ItemDescription, ItemLocation FROM Products INNER JOIN Orders USING (ItemNumber)...