Complete the code to select all columns from the 'orders' table.
SELECT [1] FROM orders;The asterisk (*) selects all columns from the table.
Complete the code to filter rows where 'status' equals 'completed'.
SELECT * FROM orders WHERE status [1] 'completed';
The equals sign (=) is used to filter rows where the column matches a specific value.
Fix the error in the code to correctly join 'orders' and 'customers' on 'customer_id'.
SELECT orders.id, customers.name FROM orders JOIN customers ON orders.[1] = customers.customer_id;The join should be on the 'customer_id' column in the 'orders' table to match 'customers.customer_id'.
Fill both blanks to create a dictionary comprehension that maps words to their lengths for words longer than 3 characters.
{word: [1] for word in words if [2]The dictionary maps each word to its length using len(word). The condition filters words longer than 3 characters using len(word) > 3.
Fill all three blanks to create a dictionary comprehension that maps uppercase words to their values if the value is greater than 0.
result = { [1]: [2] for k, v in data.items() if v [3] 0 }The key is the uppercase version of k using k.upper(). The value is v. The condition filters items where v is greater than 0.