Insert Into Select
Don’t start Insert Into Select with jargon. Start with student names. That is the whole point.
Do Insert Into Select once by hand. SELECT name, marks FROM …. Change one input. Say the new result out loud.
Without Insert Into Select, marks table gets messy and student names is hard to trust.
Insert Into Select shows up in marks table. Name student names, not “a real-world scenario”.
Don’t do this with Insert Into Select — SELECT * in production reports. Interviewers spot it in ten seconds.
After Insert Into Select, Farhan should still remember SELECT * in production reports.
Close Insert Into Select with — “If I skip it, student names goes wrong like this: SELECT * in production reports.”
FROM students
│
▼
WHERE city = 'Pune'
│
▼
SELECT name, marksBoard: student names. Dry-run Insert Into Select. Name the trap: SELECT * in production reports.