Database 5 Practical Questions
Database 5 Practical Questions
DATABASE PROCESSING
Create a database file using the data given below and save it as PARTS 1 (15mks)
PART DESCR UNION CODE NUMBER B PRICE S PRICE PROFIT
NUM
A251 IRON 104 HW 3 35.95 37.50
A252 PARTBOARD 20 SG 2 15.95 18.12
BA74 BASKETBALL 3 HW 1 24.95 23.30
CA14 GRIDDLE 78 AP 3 299.99 40.70
CB03 BIKE 44 Sa 3 399.99 302.75
BZ66 WASHER 52 HW 2 149.95 255.76
BT04 GRILL 11 AP 3 349.85 150.99
CZ81 TREADMAN 68 SG 2 247.90 320.89
(i) Insert the record given below as record 5. (4mks)
ZN74 ZINC 35 AP 75.99 80.75
(ii) Delete Griddle record from the database file. (2mks)
(iii) Fill profit column and write down formulae used. (5mks)
(iv) From the database, extract a query whose profits is greater than or equal to 2.85 and their number
is equal to 3 and save your file as Qpart 2. (8mks)
(v) Delete the NUMBER field from your file. (4mks)
(vi) Sort your records in ascending order basing on DESCR field. (2mks)
(vii) Create a report and give it the title PARTS ENTERPRISES. The report should only have the
following fields: Description, BUYING PRICE, SELLING PRICE, AND PROFIT. Save it as PARTR
Print PART 1, QPART 2, and PART R.