I have 2 tables, Students information and Accounts information.
the two are related with the field "Admission number" which is common in both tables, which also acts as the primary key in the 2 tables,
i have Enforced ref integrity,and also enabled cascade deletes and updates.
the two tables also have 3 common fields i.e name,class,gender.
My Question is: when I delete records from Students table, it does fine and deletes related records in Accounts records, but when i add records in students table it does not reflect in Accounts table. Why?
What I want is: When i add records in the students table, the related fields in accounts table are also added. same to when i delete records.
how do i make this happen?
the two are related with the field "Admission number" which is common in both tables, which also acts as the primary key in the 2 tables,
i have Enforced ref integrity,and also enabled cascade deletes and updates.
the two tables also have 3 common fields i.e name,class,gender.
My Question is: when I delete records from Students table, it does fine and deletes related records in Accounts records, but when i add records in students table it does not reflect in Accounts table. Why?
What I want is: When i add records in the students table, the related fields in accounts table are also added. same to when i delete records.
how do i make this happen?