Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

REVIEW TEST CONSTRUCT A DATABASE

CAPE IT Unit 2: Mod 1 Specific Objective 12 (Practical MS Access)


You are the manager of the Information Technology Department within your organization. You have been
exposed to Database using Microsoft Access and Query Languages.
You are required to:
a. Using your database software, construct a Database named Department Information System.
(1 mark)
b. Create a database table called Equipment with the following structure and assign primary key
appropriately.
(5 marks)
Field Name
EID
Equipment Name
Number of Equipment
Date purchased
Insured

Data Type
5
50
Number
Date/Time
Yes/No
Text
Text

Field Size

c. Create another table is provided which will be used to do some queries. Appropriate primary key
should be assigned.
(5 marks)
Field Name
Data Type
Field Size
LocationID
Text
4
ECode
Text
5
Number assigned
Number
Installed
Yes/No
Cost of Building
Currency
d. Enter the following information is given that is contained in the Database Tables Equipment and
Location. Add 15 more records to the location table. Ensure all equipment available in the
Equipment table are allocated to locations: CR1, CR2, CR3, MR1, MR2, MR3, OFF10 and STR30.
(15 marks)
EID
LP102
DP102
PR302
DTC12
SCA23
LocationID
CR1
MR32
CR2
CR2
CR2

Equipment
Name
Laptop
Data Projector
Printers
Desktop
Computers
Scanners
ECode
LP102
LP102
DP102
PR302
LP102

EQUIPMENT TABLE
Number of
Equipment
50
45
25
154
43
LOCATION TABLE
Number
assigned
5
14
5
10
13

Date purchase
(DD/MM/YR)
12/1/2011
13/5/2011
5/7/2011
2/5/2010

Yes
No
Yes
Yes

6/2/2010

No

Installed
Yes
Yes
No
Yes
No

Insured

Cost of Building
$1, 5000,000
$500, 000
$800, 000
$900, 000
$1, 300, 000

e. Provide for the Equipment and Location Table to be joined. Create duplicate tables before queries
are executed. (2 marks)
f.

Execute the following queries (Save as Query1, Query2, Query 3, etc)


i.
ii.
iii.
iv.

List all the equipment that are provided by the department.


(4 marks)
Provide a list of the Equipment ID, Equipment Name for equipment that provided in excess of 50.
(3 marks)
Give a list of the Equipments that are used in CR2 Location that are insured.
(3 marks)
Provide a list of the location of all equipment arranged by cost of the building (in ascending
order). (3 marks)
1

v.

Delete all records in the Location table that are not installed.
(3 marks)
g. Update the Building Cost by 10% in the location table.
(2 marks)
h. Do a query that provides the total cost of all Buildings in the Location table.
(2 marks)
i.

Do a report to show the Equipment information with appropriate title, with records organized by
Equipment ID.
(3 marks)
TOTAL MARKS 50

You might also like