You need a database connection to run queries. If you haven't already done so, set up your database connection.
We will be using two queries for our analysis. Copy and paste the queries below into your file under the appropriate headers.
Complaints by Day
Complaints by Department
Your page should now look like this:
Now that we have our data sources set up, let's move on to some interesting and powerful ways of displaying that data.