8. Looking after the forum
In the Foro de dudas it created with Unit 4 there are two threads:
- Lucía: when inserting an order she gets
ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails. - Marcos: he can't see the difference between
WHEREandHAVING. And Sara has answered him with something wrong: that they're the same and thatHAVINGis used when there's anORDER BY.
All it takes is asking:
Now look at the Foro de dudas.
It reads the two threads, prepares two replies and shows them to you in full, word for word, in a single approval. In Marcos's, it corrects the mistaken idea without pointing at anyone.
What the class sees
It explains to Lucía that the INSERT isn't wrong: the customer doesn't exist. How to check it with a SELECT, which two ways she has of solving it and where it is in the notes.
In Marcos's thread it makes clear what each clause filters and at what moment, and that ORDER BY has nothing to do with it.
It connects what it sees
When it finishes, it checks that each reply appears only once in its thread. It connects the forum with what it saw when grading: the confusion between WHERE and HAVING is the same one that made a final project submission fail, and it proposes a brief review in class. And it warns that when publishing, Moodle has subscribed you to those threads.
It notes the two questions in the pages for Units 3 and 4 of its memory, with no data about any student.
Next step: follow-up and audit.




