PDF Version Available

This document is also available in PDF format: week5optimization.pdf

The PDF version includes bookmarks for easy navigation and is optimized for printing.

Accessibility Notice

This document is also available in HTML format at:

https://aholdengouveia.name/AdvData/labs/week5optimization.html

The HTML version provides enhanced accessibility features including keyboard navigation, screen reader support, responsive design, dark mode support, and high contrast options.

Objectives:

Complete the following problems

References, a video, a PowerPoint and some notes are available at my website https://www.aholdengouveia.name/AdvData/optimization.html

Query optimization practice on Kaggle

Query Optimization Challenges

For each query make sure to include a short (1 paragraph or less) explanation of how you optimized it and solved the problem. Each problem should also include your solution typed out, and a screenshot of your solution being run. Make sure all screenshots include your name and the term.

Go to https://www.sandboxsql.com/ and load in the database located here https://github.com/aholdengouveia/aholdengouveia.github.io/blob/main/AdvData/labs/BooksDatabase.sqlite for the following problems.

Note: The queries don't always copy over well, especially symbols like the single quote.

SELECT authors.name, books.genre
            FROM books INNER JOIN authors 
            ON books.author_id = authors.author_id
            WHERE books.title = 'Dune'

Deliverables