Past ExamsRwanda ICT preparation

Topics / Database

The foreign key from Payments to Employees is defined with ON DELETE CASCADE. An administrator deletes an employee who left last year. What happens to that employee's payment history?

La clé étrangère de Paiements vers Employés est définie avec ON DELETE CASCADE. Un administrateur supprime un employé parti l'an dernier. Qu'advient-il de l'historique des paiements de cet employé ?

Answers
AIt is deleted automatically along with the employeeIl est supprimé automatiquement avec l'employé
BIt stays, and the payments now point to an employee who no longer existsIl reste, et les paiements désignent désormais un employé qui n'existe plus
CThe deletion is refusedLa suppression est refusée
DThe payments are moved to another employeeLes paiements sont transférés à un autre employé
The answer and explanation are in the full bank.

This question is one of 2,831 in the paid banks. Each comes with the correct answer and the reasoning behind it, not just a mark.

Unlock for 5,000 RWF

MIFOTRA exam practicealigned to Practice set: Database Management·3 marks·Hard

More Database questions