You are on page 1of 2

Teaching and Learning Activity-Suggested Solution

Module: Database Management (HDBP200-1)


Week number (Date): 2 (13 August 2020)
Unit covered: The database concepts

1 Previously, you had learned that the relational data model’s structure. Identify the three
components of a relational model from below options.

A. A logical data structure represented by the relational table, where data are stored
B. A data structure represented by tables, where data are stored
C. A set of integrity rules to enforce that the data are and remain consistent over time
D. A set of business rules for organisations’ daily operation
E. A set of operations that define how data are manipulated

Answer:
A. A logical data structure represented by the relational table, where data are stored
C. A set of integrity rules to enforce that the data are and remain consistent over time Unit 3
E. A set of operations that define how data are manipulated Page 75

2 An invoice is a commercial document issued by a seller to a buyer, relating to a sale


transaction and indicating the products, quantities, and agreed prices for products or
services the seller had provided the buyer.

Which of the following can be considered as a primary key?

A. invoice date
B. customer name
C. invoice number
D. ID number

Answer:
C. invoice number Unit 3
Page 82

1 HDBP200-1-July-Dec2020-T&L-W2-Memo-CMu-V1-03082020
3 A JOIN clause is used to combine rows from two or more tables, based on a related
column between them. Which clause explains the below picture?

A. Inner Join
B. Left Join
C. Right Join
D. Full Outer Join

Answer:
B. Left Join Unit 4
Page
146

4. Consider an extract of a car sales database table below:

TRANS_ID OWNER_NAM MAKE_ID DISTANCE IS_HATCHBACK PRICE


E
A452 John 4 170220 1 25000
C857 Toby 1 152000 0 46000
2529 Ted 3 98000 0 80900
DA23 Marshal 1 105200 1 40000
443 Lily 2 85000 0 95000

a. Suggest the primary key for the table


Answer TRANS_ID

b. Suggest the most appropriate data type for the following attributes:
i) TRANS_ID TEXT
ii) OWNER_NAME TEXT
iii) MAKE_ID NUMERICAL
iv) IS_HATCHBACK LOGICAL

2 HDBP200-1-July-Dec2020-T&L-W2-Memo-CMu-V1-03082020

You might also like