0% found this document useful (0 votes)
34 views1 page

Database 5 Practical Questions

The document outlines the steps for creating and managing a database file named PARTS, including inserting a new record, deleting an existing record, calculating profits, extracting specific queries, and sorting records. It also specifies the creation of a report titled PARTS ENTERPRISES with selected fields. Finally, it instructs to print the files PART 1, QPART 2, and PART R.

Uploaded by

BAYERN JOEL
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)
34 views1 page

Database 5 Practical Questions

The document outlines the steps for creating and managing a database file named PARTS, including inserting a new record, deleting an existing record, calculating profits, extracting specific queries, and sorting records. It also specifies the creation of a report titled PARTS ENTERPRISES with selected fields. Finally, it instructs to print the files PART 1, QPART 2, and PART R.

Uploaded by

BAYERN JOEL
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/ 1

2.

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.

[email protected] [0728 450 425]

You might also like