Creates a book trading database and uses inner and outer joins and subqueries.