0% found this document useful (0 votes)
12 views3 pages

Database Technologies

The document consists of a series of questions related to the Entity Relationship data model, relational databases, and SQL operations. It covers definitions, properties, components of database environments, and the differences between databases and DBMS. Additionally, it includes practical SQL tasks and discussions on data types and roles in database management.

Uploaded by

mwiigo
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)
12 views3 pages

Database Technologies

The document consists of a series of questions related to the Entity Relationship data model, relational databases, and SQL operations. It covers definitions, properties, components of database environments, and the differences between databases and DBMS. Additionally, it includes practical SQL tasks and discussions on data types and roles in database management.

Uploaded by

mwiigo
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/ 3

QUESTION ONE

(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)

(c) With the help of a diagram explain what is an ER diagram. (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

QUESTION SIX (20 Marks)


Assume you are given the table below named Staff on database KSCO, write the sql
statements to answer the questions that follow:

NO STAFFID FNAME LNAME DATEOFBIRTH SEX SALARY


1 KU00015 Josco Lumala 25th January 1965 M 940,000/=
2 KU00665 Alexiend Ayebazibwe 14th February 1980 M 750,000/=
3 KU45001 Peter Ndyanabo 13th April 1987 M 880,000/=
4 KU32004 John Magezi 20th January 1960 F 920,000/=
5 KU34560 Alex Ndyanabo 19th May 1989 F 860,000/=

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

Discuss any six data types in sql. (12 marks)


b) Discuss the roles of the following personnel in the database environment: (2 marks
@)
i. Database administrator
ii. Database designer
iii. End users
iv. Data administrator

END

Page 4 of 4

You might also like