Complete the code to select all columns from the sales table.
SELECT [1] FROM salesThe asterisk (*) selects all columns in SQL queries.
Complete the code to filter sales where amount is greater than 100.
SELECT * FROM sales WHERE amount [1] 100
The '>' operator filters rows where amount is greater than 100.
Fix the error in the code to calculate total sales per product.
SELECT product_id, SUM([1]) FROM sales GROUP BY product_idSUM should be applied to the quantity column to get total sales count.
Fill both blanks to create a dictionary of product sales where sales are above 50.
sales_dict = { [1]: [2] for [1] in products if sales[[1]] > 50 }Use product_id as key and sales as value for products with sales over 50.
Fill all three blanks to create a filtered dictionary of products with quantity above 10.
filtered = { [1]: [2] for [1] in inventory if inventory[[1]] [3] 10 }Use item as key, inventory as value, and filter where inventory is greater than 10.
