Database Technologies
Database Technologies
(a) Write a short note on the following terms as applied in relation to Entity Relationship data
model; (@ 2 Mark)
i.Weak Entity
ii.Entity
iii.Attribute
iv.Relationship
v.Entity set
(b) How is the primary key different from the foreign key of a table (5 marks)
QUESTION TWO
a) Using the knowledge, you have acquired in class, explain five properties for a relational
database
(10 marks)
Using MySQL Database Management Software Program, Interpret the following Apply the
following clauses; (@1marks)
1. Create
2. Alter
3. Insert
4. Update
5. Drop
6. Delete
7. Select
8. Use
9. Like
10. Order by
QUESTION THREE
a) Define a Database and Data redundancy (4 marks)
b) Explain the components of a Database Environment (5 marks)
c) Mention three different places you could advise an entrepreneur to put a database
(3 marks)
Page 2|4
d) Why would you choose a database system instead of simply storing data in file-based
systems?
(8 marks)
QUESTION FOUR
a) Differentiate between Database and DBMS (04 marks)
b) (b). Explain any three characteristics of a database management system (06 marks)
c) (c). Discuss the advantages and disadvantages of DBMSs
(10marks)
QUESTION FIVE
Write short notes on the following DB terms: (Give examples to each) (5 Marks @)
a) Candidate keys
b) Order By
c) SQL
d) NOSQL
i. First enter into the database and then Delete the fourth record of this table
ii. View the LNAME together with FNAME, SEX and Salary reduced to half of the
information above
iii. Change the SEX attribute name to become Gender
iv. View the Salary of all Male with names starting with J
Page 3|4
v. Add another column of Locations and show that all of the Staff are in Ggaba
vi. Use the distinct Keyword for Gender and write the result
vii. Add another record to the existing table with the column of Location being
Mutundwe
viii. Change the value John to Johnson
ix. Delete the first Column
x. Create a copy of this table but with a different table name called Employees
xi. Show all columns whose Sex has ‘M’ within it
xii. Show the sum of all the salary to pay the workers
QUESTION SEVEN
END
Page 4 of 4