I'm currently trying to understand the nuances of Insertion/Deletion/Modification anomalies in SQL.
Currently, the example I'm trying to understand is as follows:
ENROLLMENT
StudentID(PK) StudentName ClassID ClassName
111 Joe E1 English1
222 Bob E1 English1
333 Mary H1 History1
The problem the example wants me to answer is:
Which of the following causes an insertion anomaly?
with the answers being
Inserting a Student without a Class
and
Inserting a Class without a Student
I don't really understand why one of these answers is more right than the other, why, or how. It seems to me like either could be acceptable. Thanks in advance.