MySQL functions and grouping: math, text and date functions, aggregate functions, GROUP BY with HAVING, ORDER BY, and Cartesian products and equi-joins of two tables.
| ROUND | ROUND(912.564, 2) → 912.56; ROUND(912.565, 2) → 912.57; ROUND(912.5, 0) → 913 |
| MOD, POWER | MOD(47, 5) → 2; POWER(3, 4) → 81 |
| Text | MID('Keyboard', 3, 4) → yboa; LEFT('Network', 3) → Net; INSTR('Database', 'BAS') → 5 |
| Dates | MONTH('2026-03-14') → 3; MONTHNAME → March; DAYNAME → Saturday |
| AVG of whole numbers | four decimals: AVG of 78, 81, 79 and 79 → 79.2500 |
| Clause order | SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY |
| Equi-join | SELECT Name, ClubName FROM STUDENT, CLUB WHERE STUDENT.ClubId = CLUB.ClubId; |
| Cartesian product A × B | degree = columns of A + columns of B; cardinality = rows of A × rows of B |
Write the output of:
SELECT LOWER(RIGHT('Software', 2));
Working: RIGHT gives re; LOWER makes it small letters
Answer: re