0% found this document useful (0 votes)
124 views

ICT1521 Assignment 02 - 2023

This document contains information about Assignment 02 for the Introduction to Databases module (ICT1521) at Unisa for 2023. It provides important details about registering for the module online and submitting assignments. The assignment contains 3 questions assessing students' knowledge of databases. Question 1 involves interacting with databases and listing ones used. Question 2 provides a SQL command to create a table. Question 3 addresses data types, writing queries, and sorting data. Students must submit the assignment online by May 22, 2023 for it to contribute to their year mark.

Uploaded by

Lesego Huma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views

ICT1521 Assignment 02 - 2023

This document contains information about Assignment 02 for the Introduction to Databases module (ICT1521) at Unisa for 2023. It provides important details about registering for the module online and submitting assignments. The assignment contains 3 questions assessing students' knowledge of databases. Question 1 involves interacting with databases and listing ones used. Question 2 provides a SQL command to create a table. Question 3 addresses data types, writing queries, and sorting data. Students must submit the assignment online by May 22, 2023 for it to contribute to their year mark.

Uploaded by

Lesego Huma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Introduction to Databases

ICT1521

Year 2023

Assignment 02

IMPORTANT INFORMATION

Please register on myUnisa, activate your myLife email address and make sure that
you have regular access to the myUnisa module website, ICT1521-23-Y, as well as
your group website.

Introduction

As part of the formative assessment of this module, students are required to complete
assignments for this module. The assignments must be completed and submitted
online. Students are only allowed to submit each assignment once. Assignments
contribute towards a year mark, which makes up 20% of the final mark you will receive
for this module. You are required to submit at least one assignment if you wish to gain
admission to the exams. The assignment contains written questions from chapters 01
to chapter 04 of the prescribed textbook. The due date for this assignment is 22 May
2023.
Question 01 [20 Marks]

We interact with databases daily but often do not recognize that fact.

1. Have you used Google or another search engine recently? (provide screenshot) (2)
2. Have you purchased anything online? (provide screenshot) (2)
3. Did you use the Unisa online library catalog? (provide screenshot) (2)
4. How have you interacted with any databases in the previous 24 hours? (provide
screenshot) (2)
5. Write the list on of databases you have used recently to emphasize the important
role databases play in your daily lives. (3)
6. Create an invoice for StayWell Student Accommodation that would use the
OWNER, PROPERTY, and SERVICE_CATEGORY tables in the database. (4)
7. Visit a local business to find out how the business uses a database (State the name
and owner of the business as well as a description of how they use a database).
(5)

Question 02 [5 Marks]

Write a MySQL command to create a table called CANDY that contains the following
columns:

• Candy ID, five characters; will function as primary key


• Candy name, 25 characters
• Description, 50 characters
• Quantity per unit, whole number

Question 03 [10 Marks]

1. Why does the POSTAL_CODE column in the REP table of the KimTay database have
a data type of CHAR, if a postal code is made up of numbers. (2)

2. Imagine you are working with a MySQL table called LIBRARY_MEMBERS that
includes the following columns: MEMBER_ID, MOBILE_NUMBER, MAX_BOOKS (the
maximum number of books that member can check out at one time), and
BOOKS_CHECKED_OUT (the number of books currently checked out). Write a SQL
query that will display a grid including the MEMBER_ID for all rows plus a column
called CAN_CHECK_OUT that indicates how many more books that library member
must check out to reach his or her maximum. (4)

3. Sorting means ordering records in a particular way. When would it be useful to sort
data in an ascending order? Why? When would it be useful to sort data in a
descending order? Why? (4)

@Unisa 2023

You might also like