Receptionists need to look up staff names and office numbers, but must not see salaries or national ID numbers held in the same Staff table. What is a clean database-level solution?
Les réceptionnistes doivent retrouver les noms des agents et leurs numéros de bureau, sans voir les salaires ni les numéros d'identité nationale conservés dans la même table Staff. Quelle est une solution propre au niveau de la base ?
Answers
ACopy the Staff table every night into a separate spreadsheet for receptionCopier chaque nuit la table Staff dans un tableur séparé pour la réception
BDelete the salary columnSupprimer la colonne des salaires
CGive receptionists full access and trust themDonner un accès complet aux réceptionnistes et leur faire confiance
DA view exposing only the needed columns, with SELECT granted on itUne vue qui n'expose que les colonnes utiles, avec un droit SELECT sur celle-ci
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 RWFMIFOTRA exam practicealigned to Practice set: Database Management·2 marks·Medium
More Database questions
- What is the main role of a database management system (DBMS) such as PostgreSQL, MySQL or SQL Server?
- In a relational table called Applicants, what does a single row represent?
- Which two properties must every primary key value have?
- The Employees table has a DistrictID column that must always refer to an existing row in the Districts table. What enforces this rule?
- An ExamResults table records one score per candidate per paper. Neither CandidateID nor PaperID is unique on its own. What is a suitable primary key?
- A designer gives each applicant an auto-generated ApplicantID as the primary key, and stores the national ID number as a separate unique column. Why use this surrogate key?
- One district has many sectors, and each sector belongs to exactly one district. What type of relationship is this?
- Each trainee can attend many courses, and each course has many trainees. How is this relationship stored in a relational database?