ICT1521 Assignment 02 - 2023
ICT1521 Assignment 02 - 2023
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:
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