Each trainee can attend many courses, and each course has many trainees. How is this relationship stored in a relational database?
Chaque stagiaire peut suivre plusieurs cours, et chaque cours a plusieurs stagiaires. Comment cette relation est-elle stockée dans une base de données relationnelle ?
Answers
ABy listing every course name in one long text column of the Trainees tableEn listant tous les noms de cours dans une longue colonne texte de la table Stagiaires
BWith a junction table (e.g. Enrolments) holding both foreign keysAvec une table de liaison (par exemple Inscriptions) contenant les deux clés étrangères
CBy copying the whole Courses table into the Trainees tableEn copiant toute la table Cours dans la table Stagiaires
DIt cannot be stored in a relational databaseElle ne peut pas être stockée dans une base relationnelle
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?
- A Staff table has a column PhoneNumbers containing values like “0788123456, 0722654321”. Which normal form does this break, and why?