Photo AI

A database management system is required for a digital media company that specialises in creating and distributing online video content - NSC Information Technology - Question 2 - 2024 - Paper 1

Question icon

Question 2

A-database-management-system-is-required-for-a-digital-media-company-that-specialises-in-creating-and-distributing-online-video-content-NSC Information Technology-Question 2-2024-Paper 1.png

A database management system is required for a digital media company that specialises in creating and distributing online video content. The company has several vide... show full transcript

Worked Solution & Example Answer:A database management system is required for a digital media company that specialises in creating and distributing online video content - NSC Information Technology - Question 2 - 2024 - Paper 1

Step 1

Button 2.1.1 - Free videos

96%

114 rated

Answer

To retrieve the titles, durations, and creator IDs of free videos from the tblVideos table, use the following SQL statement:

SELECT Title, Duration, UploadDate, CreatorID
FROM tblVideos
WHERE FreeVideo = True;

Alternatively, you can use:

WHERE FreeVideo = Yes;

or:

WHERE FreeVideo = -1;

Step 2

Button 2.1.2 - Check domain

99%

104 rated

Answer

To select creators' details who have an email not ending with '@gmail.com' and are located in South Africa, execute:

SELECT CreatorName, Email, Country
FROM tblCreators
WHERE Email NOT LIKE '%@gmail.com' AND Country = 'South Africa';

Step 3

Button 2.1.3 - Latest videos

96%

101 rated

Answer

To get the top 3 latest uploaded videos, use:

SELECT TOP 3 UploadDate, VideoID, Title
FROM tblVideos
ORDER BY UploadDate DESC;

Step 4

Button 2.1.4 - Videos per creator

98%

120 rated

Answer

To find the number of videos uploaded by each creator, the SQL statement would be:

SELECT CreatorID, Count(*) AS NumberUploaded
FROM tblVideos
GROUP BY CreatorID
HAVING Count(*) > 5;

As an alternative, you can also express:

Count(field_name);

Step 5

Button 2.1.5 - Add new creator

97%

117 rated

Answer

When adding a new creator to the tblCreators table, the SQL command would be:

INSERT INTO tblCreators
VALUES ('C01', 'TRISHAKOL', 'trish@marketing.co.za', 'South Africa');

Step 6

Button 2.2.1 - Remove creator

97%

121 rated

Answer

To remove a creator and their associated videos, follow these steps:

  • Start with the first record in the tblCreators table.
  • Use a loop to iterate through tblCreators.
  • If the CreatorID matches:
    • Delete from tblVideos using:

tblVideos.Delete;

- Move to the next record in tblVideos.
- End the loop once all creators have been processed.

Step 7

Button 2.2.2 - Change upload date

96%

114 rated

Answer

To change the upload date of a video, access the tblVideos table and execute:

tblVideos.Edit;

tblVideos['UploadDate'] := Date;

tblVideos.Post;

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

;