Professional Documents
Culture Documents
CAPE IT Unit 2 Mod+1+Specific+Objective+12+Practical+Database
CAPE IT Unit 2 Mod+1+Specific+Objective+12+Practical+Database
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.
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