Past ExamsRwanda ICT preparation

Topics / Database

A table has a composite index on (DistrictID, HireDate). Which query can use this index most effectively?

Une table possède un index composite sur (DistrictID, HireDate). Quelle requête peut l'utiliser le plus efficacement ?

Answers
AWHERE DistrictID = 12 AND HireDate >= '2024-01-01'WHERE DistrictID = 12 AND HireDate >= '2024-01-01'
BWHERE HireDate >= '2024-01-01' only, without any condition on DistrictIDWHERE HireDate >= '2024-01-01' seul, sans aucune condition sur DistrictID
CWHERE Salary > 500000WHERE Salary > 500000
DWHERE Name LIKE '%Jean%'WHERE Name LIKE '%Jean%'
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