Learn with Abdou

Chapter 10 · Concept 5 of 5 · Practice

A sanity query doubles the rate total

two fresh builds, verify.sql, what a matching total proves · level 5 of 6

Opening your saved work…

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

A sanity query doubles the rate total · two fresh builds, verify.sql, what a matching total proves · level 5 of 6

A sanity query doubles the rate total

Level 5: Repair it · Exercise 1 of 1

Both builds print 30 for Trail gear and 30 for Water gear, and the team takes the agreement as proof.

This sanity query is meant to return gear_type and rate_sum for each gear type with loaded items, in gear type id order. It runs, both builds agree, and the numbers are wrong. Repair the join, then compare the totals with the ordered item rows.

Finish line: 2 rows · columns gear_type, rate_sum · in the order the question gives

Data: Trail Gear: build rehearsal.

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

CURRENT DATABASE

Quick schema · Trail Gear: build rehearsal

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.