Learn with Abdou

Chapter 7 · Concept 6 of 6 · Practice

The checkout count changes a wage total

count repetitions before adding money · level 5 of 6

Opening your saved work…

Sign in to save across devices → · Download your guest work before switching accounts.

The checkout count changes a wage total · count repetitions before adding money · level 5 of 6

The checkout count changes a wage total

Level 5: Repair it · Exercise 1 of 1

The wage report says Lincoln Park's staff earn 1,055.25 an hour between them. Four people work there.

This query should give each branch's wage_rate_sum from the listed hourly wages of its staff. It joins loans and reports Lincoln Park at 1,055.25. Fix it so it returns branch_id and wage_rate_sum, rounded to 2 decimals, for each branch with staff, ordered by branch id, and say why the total was inflated.

Finish line: 5 rows · columns branch_id, wage_rate_sum · in the order the question gives

Data: Twin Ports Tool Library.

Opening the database…
Table & column names only · ↑ ↓ choose · Tab insert · Esc dismiss

CURRENT DATABASE

Quick schema · Twin Ports Tool Library

Press Esc or click outside to return to your query. PK = primary key · FK = declared foreign key.

This database has no tables yet. Create a table, then reopen the schema to see its columns.

Control Space also opens names. Enter adds a new line. Control or Command Enter runs your query.
Open in the playground

Query results

Run your query to see the result here.

Run your query to see the result here.

Practice here is evidence for you and your instructor, never a grade. Grades live in Canvas.