Can count individual attribute values COUNT(branch_name) COUNT(DISTINCT branch_name) ¨ Can also count the total number of tuples COUNT(*) 🞑 If used with grouping,…
🞑 Find average balance of accounts at Perryridge branch SELECT AVG(balance) FROM account WHERE branch_name = 'Perryridge'; ¨ Find maximum amount of any…
¨ SQL provides grouping and aggregate operations, just like relational algebra Aggregate functions: SUM sums the values in the collection AVG computes average…