Q1
Why is writing DELETE FROM Pets; without a `WHERE` filter one of the scariest database mistakes?
Without WHERE name = 'Buddy', SQL deletes EVERY single row in the entire Pets table! Always check your WHERE condition with SELECT first before running UPDATE or DELETE.
Q2
Why does WHERE grade = NULL return ZERO rows even when students have blank grades—requiring `IS NULL` instead?
NULL means 'missing/unknown', not an actual word or 0, so SQL = NULL never matches anything. Always write WHERE grade IS NULL or IS NOT NULL.
Q3
Why does every table in a database need a Primary Key (like unique student_id) instead of matching students only by first_name?
Two different kids in class can both be named 'Aarav', so deleting or updating by name alone risks editing both students! A unique ID picks the exact one student every time.
Q4
How do `LIKE 'A%'` vs `LIKE '%a%'` search school clubs or game inventories differently?
% acts as a wildcard for any letters: 'A%' finds names starting with A (Arjun, Ananya), while '%a%' matches names containing 'a' anywhere inside.
Q5
Why can you sort scores cleanly with ORDER BY points DESC LIMIT 3?
ORDER BY points DESC places the highest scores at the very top (Z -> A / Big -> Small), and LIMIT 3 grabs just the Top 3 trophy winners!
Q6
How do **COUNT(*), SUM(), AVG(), and MAX()** turn raw row lists into leaderboard stats?
Aggregate functions crunch thousands of rows instantly into single totals (HOW MANY, TOTAL, AVERAGE, HIGHEST)—and pairing with `GROUP BY house` finds top scores per school house!
Q7
What is the difference between `AND` vs `OR`—and why are parentheses needed when mixing them (WHERE house = 'Red' AND (score > 90 OR bonus = 1))?
AND checks before OR automatically; forgetting () when mixing AND + OR gives completely wrong matches across houses.
Q8
How does `DISTINCT` clean up repeated items (SELECT DISTINCT city FROM Players;)?
DISTINCT hides duplicate copies so a city with 50 players appears just once cleanly in your list.
Q9
Why do databases use Two Connected Tables (`Students` + `Books`) with a Foreign Key instead of squishing 20 columns into one spreadsheet?
Linking student_id stops repeating a student's address and phone number 15 times for every library book borrowed—saving space and keeping updates clean in one place!
Q10
What is the key difference between WHERE and HAVING when counting library books per student?
WHERE filters individual rows before counting, while HAVING COUNT(*) > 3 filters *after* grouping students by book count.