Most common:
SUM
COUNT
AVG
MIN
MAX
Example:
SELECT
city,
COUNT(*) AS total_orders,
SUM(amount) AS revenue,
AVG(amount) AS avg_order_value,
MAX(amount) AS max_order
FROM orders
GROUP BY city;
COUNT(*) vs COUNT(column)
COUNT(*)
সব rows count।
COUNT(column)
NULL values ignore করে।
এটা interview-এর common trap।