Professional Documents
Culture Documents
Procedure :
1
Output
2
7. Electronic Spreadsheet -Macro
Aim : To record and run macro to find the total average of 6 subjects.
Procedure :
Recording Macro :
Step 1 :Type the data from A1 to B9 as shown in the Sheet 1output
Step 2 :Place the cursor at A10 and choose Tools->Macro->Record Macro
Step 3 :Type the following :
A10 : TOTAL
A11 : AVERAGE
B10 : = B4+B5+B6+B7+B8+B9
B11 : =B10/6
Step 4 :Click on Stop Recording tab
Step 5 :TypeMEANin Macro name
Step 6 :ChooseMy Macros->Standard->Module1 and click on Save to save
the macro.
Run Macro :
Step 1 :Type the data from A1 to B9 as shown in the Sheet 2 output
Step 2 :Place the cursor at A10 and choose Tools->Macro->Run Macro
Step 3 :SelectMy Macros->Standard->Module1 and choose MEANmacro
and click Run.
Step 4 :Observe the Total and Average is calculated automatically and
displayed.
Result : Macro is created to find the total and average of 6 subject marks.
3
Sheet 1 – Output
Sheet 2 – Output
4
8. Electronic Spreadsheet - Scenario
Aim : To create scenario to predict the profit by changing the units sold or
by changing the Selling price.
Procedure :
Result : Two scenarios are created to find the profit by changing the selling
price or by changing the units sold.
5
Output
Scenario_1 (By changing the Selling Price)
6
9. Electronic Spreadsheet - Consolidate
Procedure :
Step 1: Right click on Sheet1 and rename quarter1 and type the content
from A1 to B5
Step 2: Right click on Sheet2 and rename quarter2 and type the content
from A1 to B5
Step 3: Right click on Sheet3 and rename TotalSales
Step 4 : Select Data->Consolidate
Step 5: Select Sum Function box
Step 6 : Click on Source Data Range input box and select A1 to B5 from
quarter1 sheet and click on add to add the range for consolidation.
Step 7 : Click on Source Data Range input box and select A1 to B5 from
quarter2 sheet and click on add to add the range for consolidation.
Step 8 : Click on More and select Row labels, column labels and Link to
source data.
Step 9: Click on Copy results to input box and select A1 from TotalSales
sheet.
Step 10 : Click OK, now the consolidated data, the sum of sales will appear
in the TotalSales sheet.
7
Output
8
10. Electronic Spreadsheet – Subtotal
PROCEDURE:
Step 3: In the Calculate subtotals for box, select the columns containing the
Step 4: In the Use function box, select the Sum function to calculate the
subtotals.
Step 5: Click OK
9
Output
INPUT DATA
10
11. RDBMS –SQL COMMANDS
Aim : Create table items using design view and insert the items
11,22,33,44,55, 66
Procedure :
Create Table using Design View
Step 1 : Open Openoffice Base ->Create a new database -> Next ->Finish.
Type the filename as stock.odb
Step 2: Click on Tables from the left tab and select ‘Create table in Design
View’
Step 3: Type the Field Name and select the Field type from the dropdown
list as given in Output 1. Right click next to Itemno and select Primary
Key from the dropdown list.
Step 4: Press Ctrl+S to save the table, type ‘items’ as table name.
11
Output
12
12. RDBMS –SQL- SELECT COMMAND
Procedure :
Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Select Insert->Query (SQL view). Query Design window opens.
Step 3 : Type the following SQL queries one by one and press F5 to see the
output of the query
select * from “items”;
selectIname,Price from “items”;
select * from “items” where Iname= “Soap”;
select * from “items” where Quantity >50;
select * from “items” order by Iname;
select * from “items” order by Iname;
selectIname, Price+100 from “items”;
13
Query 1 Query 2
Query 3 Query 4
Query 5 Query 6
14
13. RDBMS –SQL- UPDATE COMMAND
Procedure :
Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Select Insert->Query (SQL view). Query Design window opens.
Step 3 : Type the following SQL query press F5 to see the output of the
query
select * from “items”;
15
Output 1
Output 2 : Output 3:
Output 4 : Output 5:
16
14. RDBMS - FORMS
Aim :To create form for the table items and add new records
Procedure:
Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Click forms -> Select Use Wizard to create form
Step 3 : In field selection Select the table items -> click >> to select all
fields to be inserted in the forms and click next.
Step 4: Do not select subforms check box and click next.
Step 5: In Arrange controls of the form and select how the form should
look.
Step 6: Set data entry Click the form is to display all data
Step 7: Select the colour of Forms in Apply styles and Field border and click
next.
Step 8 : Set name for the Form and click Finish.
Step 9 : Form will appear. Click new record button to enter the new
record and click save button to save the details
Step 10. Repeat step 8,9 to insert all the new records.
Result:Forms for the items table is created and new records are inserted.
17
Output
View Existing records
18
15. RDBMS – REPORTS
Procedure:
Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Click Reports Use wizard to create report
Step 3 : In Report Wizard, select a table items and click >> to select all fields
to be inserted in Report.
Step 4 : In Labelling Fields, Type the names of the Fields to be appeared in
Report.
Step 5 : Create the Look of the report in Choose Layout. Select Outline
Indented Red & Blue and Bubbles in Layout headers and Footers. Click
Portrait in Orientation.
Step 6 : Give name for the report ‘Report1’. Select Dynamic Report then
click Create report now.
Step 7: Press finish button to view the report.
19
Output
20