Past ExamsRwanda ICT preparation

Topics / Database

A results report must show “Pass” for scores of 50 or more and “Fail” otherwise, without changing the stored data. Which SQL construct does this?

Un rapport de résultats doit afficher « Admis » pour les notes de 50 ou plus et « Ajourné » sinon, sans modifier les données enregistrées. Quelle construction SQL le fait ?

Answers
AAn UPDATE statement that overwrites the Score column with the words Pass or FailUne instruction UPDATE qui remplace la colonne Score par les mots Admis ou Ajourné
BA CASE expression: CASE WHEN Score >= 50 THEN 'Pass' ELSE 'Fail' ENDUne expression CASE : CASE WHEN Score >= 50 THEN 'Admis' ELSE 'Ajourné' END
CA GRANT statementUne instruction GRANT
DA foreign key on ScoreUne clé étrangère sur Score
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·2 marks·Medium

More Database questions