Photo AI

Chikoro-bestuurskool gebruik 'n databasis om die bespreking van leerlingbestuurders te bestuur - NSC Information Technology - Question 2 - 2022 - Paper 1

Question icon

Question 2

Chikoro-bestuurskool-gebruik-'n-databasis-om-die-bespreking-van-leerlingbestuurders-te-bestuur-NSC Information Technology-Question 2-2022-Paper 1.png

Chikoro-bestuurskool gebruik 'n databasis om die bespreking van leerlingbestuurders te bestuur. Die bladsy met data aan die einde van die vraestel voorsien inligtin... show full transcript

Worked Solution & Example Answer:Chikoro-bestuurskool gebruik 'n databasis om die bespreking van leerlingbestuurders te bestuur - NSC Information Technology - Question 2 - 2022 - Paper 1

Step 1

Knoppie [2.1.1 - Lys van bespreks]

96%

114 rated

Answer

To display the reservation numbers and dates sorted by the reservation date, the following SQL statement can be used:

SELECT BespreekNom, BespreekDatum
FROM tblBesprekings
ORDER BY BespreekDatum;

Step 2

Knoppie [2.1.3 - Bellville-besprekings]

99%

104 rated

Answer

To show the reservation number and the name of the learner manager from the records where the test center is Bellville, use the SQL statement below:

SELECT BespreekNom, BestuurderNaam, BestuurderVan
FROM tblBesprekings, tblBestuurders
WHERE tblBesprekings.LBestuurderID = tblBestuurders.LBestuurderID 
AND tblBestuurders.LDriverID = 'Bellville';

Step 3

Knoppie [2.1.5 - Verwyder besprekings]

96%

101 rated

Answer

To delete records from the tblBesprekings where the test center is Pretoria and the reservation date falls between specified dates, employ the following SQL statement:

DELETE FROM tblBesprekings
WHERE Toetsentrum = 'Pretoria'
AND BespreekDatum BETWEEN '2022/05/18' AND '2022/05/25';

Step 4

Knoppie [2.2.1 - Besprekings vir geslag]

98%

120 rated

Answer

To count the number of learner managers by gender, you can consider the seventh digit of the ID number. The SQL statement would look like this:

SELECT COUNT(*) AS TotalFemale,
       (SELECT COUNT(*) FROM tblBestuurders WHERE SUBSTR(ID, 7, 1) BETWEEN '5' AND '9') AS TotalMale
FROM tblBestuurders
WHERE SUBSTR(ID, 7, 1) BETWEEN '0' AND '4';

Step 5

Knoppie [2.2.2 - Besprekings vir 'n leerlingbestuurder]

97%

117 rated

Answer

To display the bookings for a certain learner manager by input ID, the following SQL can be structured:

SELECT * 
FROM tblBestuurders 
WHERE LBestuurderID = :id;

Join the NSC students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;