Complete the code to select all columns from the test failures table.
SELECT [1] FROM test_failures;Using * selects all columns from the table.
Complete the code to filter test failures where the failure count is greater than 5.
SELECT * FROM test_failures WHERE failure_count [1] 5;
< instead of >.= which only matches exactly 5.The operator > filters rows where failure_count is greater than 5.
Fix the error in the code to count failures grouped by test name.
SELECT test_name, COUNT([1]) FROM test_failures GROUP BY test_name;COUNT(test_name) which is redundant here.Using COUNT(*) counts all rows per group.
Fill both blanks to create a dictionary of test names and their failure counts where count is greater than 10.
SELECT [1], [2] FROM test_failures WHERE failure_count > 10;
Selecting test_name and failure_count gives the test and its failure count.
Fill all three blanks to create a summary of failures grouped by test name and ordered by failure count descending.
SELECT [1], SUM([2]) AS total_failures FROM test_failures GROUP BY [3] ORDER BY total_failures DESC;
Grouping by test_name and summing failure_count gives total failures per test.
