##Lahman Baseball Dataset
Available here: Lahman Baseball Dataset
##W3 School
We'll be playing with the live database available here:
http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_all
##Questions
Let's walk through a few examples:
SELECT * FROM Customers WHERE City='Madrid'
SELECT City, COUNT(*) FROM Customers GROUP BY City
SELECT CategoryName, COUNT(*) FROM Categories JOIN Products on (Categories.CategoryID = Products.CategoryID) GROUP BY CategoryName
##On your own:
** 6. What employee made the most sales (by value of sales)?
** 7. What Employees have BS degrees? (Hint: Look at LIKE operator)
** 8. What supplier has the highest average product price assuming they have at least 2 products (Hint: Look at the HAVING operator)
There was an error while loading. Please reload this page.