Complete the code to find the highest salary from the employees table.
SELECT [1](salary) FROM employees;The MAX function returns the highest value in a column. Here, it finds the highest salary.
Complete the code to find the lowest price in the products table.
SELECT [1](price) FROM products;The MIN function returns the smallest value in a column. Here, it finds the lowest price.
Fix the error in the code to get the maximum age from the users table.
SELECT [1](age) FROM users;The function name should be MAX and the parentheses must be balanced. The blank replaces the function name correctly.
Fill both blanks to find the minimum and maximum scores from the tests table.
SELECT [1](score) AS min_score, [2](score) AS max_score FROM tests;
MIN finds the smallest score and MAX finds the largest score in the tests table.
Fill all three blanks to select the maximum price, minimum price, and average price from the items table.
SELECT [1](price) AS max_price, [2](price) AS min_price, [3](price) AS avg_price FROM items;
MAX finds the highest price, MIN finds the lowest price, and AVG calculates the average price.