KwickClips Databases and SQL · 38 sec · free
Why did all marks become 80?
Short answer. The UPDATE had no WHERE.
What should WHERE use to hit one row?
The primary key.
Remember
| SET says what to change |
| WHERE says which rows |
You changed one student's marks. Why did everyone get eighty? You forgot where. Without it, update changes every row. Where roll equals two changes only Aman. Set says what changes. Where says which rows.
This clip is from the full lesson: SQL Data Manipulation: INSERT, UPDATE and DELETE — 5 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: CBSE Class 9 Computer Applications (165), CBSE Class 9 Computer Applications (165), CBSE Class 9 Computer Applications (165), CBSE Class 9 Information Technology (402)
More KwickClips from this lesson
What does a skipped column get?37 sec
How do you delete one student?36 sec
How do you confirm an UPDATE?35 secDisclaimer. KwickAcademy is free study material for general learning and revision. Parts of it, including the voice-over, are produced with the help of AI tools and may contain errors; if you spot one, please tell us and we will correct it. Syllabus, marks and exam details follow the latest official board publications available to us, and boards can change them at any time, so always confirm against your board's official website and your school. Using this material does not guarantee any marks or result. Board names and trademarks belong to their owners; Kwickprep is not affiliated with or endorsed by any examination board. We never ask for passwords, OTPs or ID numbers. Your progress is saved only in this browser. Full disclaimer · Privacy

