0% found this document useful (0 votes)
116 views

Database - SOP 3

Uploaded by

Etteka Dhalait
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
116 views

Database - SOP 3

Uploaded by

Etteka Dhalait
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Database Using Libre Office base SOP 3

SOP 3:
Create table Product with fieldnames prodid, prodname, qty, rate, modelyearbwith appropriate data type.
Insert minimum 8 records.
1. Generate report to display records in ascending order of Prodname.
2. Generate report to display records in descending order of Product rate.
3. Generate report to display model year wise product list.
4. Build a query to display amount (qty*rate).
5. Generate a bill report with appropriate titles and calculate amount for each record.

Solution:
i) Steps for creating a database:
a) Click on Start-> All Program -> Libre office -> Libre office base.
b) Database wizard window appears, select Save and Proceed -> Click on Finish button, select
proper location where you wish to save the database with appropriate name, and database will be
created.
ii) Steps for Creating a Table:
a) To create a table, click on Create table in design view -> Table design window appears, in
that window set fieldname, datatype as follows:

b) To assign PRIMARY KEY to ProdID field, right click on the small button present on the left side of
the fieldname and select Primary key option.
c) To save click on save button or press CTRL+S, give table name as employee and click on OK button,
table will be saved.
iii) Steps for inserting records in a Table:
For inserting records in a table, double click on the table in which data is to be inserted, a window will appear
on the screen, type data under each field and complete all the records.

iv) Steps for Creating Query:


I) Generate report to display records in ascending order of ProdName.
a) To create report, from left pane click on report object.
b) From right pane, click on Use wizard to create a report.
c) Select name of table and shift fields from Available fields list to field in report list by clicking on arrow
button, click on Next button. Set how do you want to label the fields and click on Next button.
d) Click on Next button
e) Select the prodName to sort the data in ascending order, click on Next button.

f) Choose layout and orientation, click on Next button.


g) Type Title for the report and click on Finish button.
II) Generate report to display records in descending order of Product Rate.
a) To create report, from left pane click on report object.
b) From right pane, click on Use wizard to create a report.
c) Select name of table and shift fields from Available fields list to field in report list by clicking on arrow
button, click on Next button. Set how do you want to label the fields and click on Next button.
d) Click on Next button
e) Select the rate to sort the data in descending order, click on Next button.
f) Choose layout and orientation, click on Next Button.
g) Type Title for report and click on Finish button.

III) Generate report to display modelyear wise product list.


a) To create report, from left pane click on report object.
b) From right pane, click on Use wizard to create a report.
c) Select name of table and shift fields from Available fields list to field in report list by clicking on arrow
button, click on Next button. Set how do you want to label the fields and click on Next button.
d) Click on Next button
e) Select the rate to sort the data in descending order, click on Next button.
f) Choose layout and orientation, click on Next Button.
g) Type Title for report and click on Finish button.
IV) Build a query to display amount (qty*rate).
a) Click on Queries object and in right pane click on Create Query is Design View option.
b) From Add table window select table and click on Add button and click on Close.
c) Select all the fields one by one by clicking on field’s columns.
In field column type formula “qty” * “rate” and in Alias column type total Amount and click on Run
query icon or press F5nfunction key.
V) Generate a bill report with appropriate titles and calculate amount for each record.
a) To create report, from left pane click on report object.
b) From right pane click on use wizard to create a report.
c) Select name of table and shift fields from Available fields list to fields in report list by clicking on arrow
button, click on Next button.
d) Set how do you want to label the fields on click on Next button.
e) Click on Next button.
f) Choose Layout and orientation, click on Next button.
g) Type Title for the report and click on Finish button.

You might also like