Viva
Viva
ACCOUNTING SYSTEM
37
13. Write the step to delete ledger account
Master — Edit Account—Select Ledger—Delete
14.What is cloning a Voucher ?
It means copy a voucher
1.’DBMS’stand for
Data Base Managemnt System
2.The common fields used in a relationship between tables are called........................
Key field
3.SQL stands for:
Structured Query Language
4.The default extension of Libre OfficeBase file is...........................
.odb
5.’Join Line’in the context of Libre OfficeBase Table means
Graphical representation of relationship between tables
6.To expect a well formatted printable data from Libre OfficeBase database,we may use
Report
7.The data type suitable to the age of a person is:
Number (Numeric)
8.The data type suitable to the name of a person
Text:[VARCHAR]
9. The data type suitable to basic pay of employee
Number (Numeric)
10.The blank columns that represent columns in the Query results datasheet are called:
Design Grid
11.The results of Query can be displayed by clicking on
Run Button
12.ODBC stands for
Open Database connectivity:
13.Different ‘views ‘of a form
Form view, Layout view, Design view
14.In design view,name of columns are:
Field name, Data type
15.In datasheet view,what appears at the top of each column
Field name
16.Name of database object to hold data
Table
17.What field type is used to store picture in a table
OLE object
18.What criteria is used to get return a text starts with S
LIKE'S*'
19.A query criteria like '*Bimal*' returns all names that
Contains Bimal
32 38
www.educom.in
Step 6 : Create Relationship between the tables Tools Relationship
Add both tables to the relationship window and close the dialogue box.
Step 7 : In the Relationship window click on EMP_ID field of one table and drag and drop on to the
EMP_ID field of other table. Then a connecting line is formed between these two tables, which indicates the
relationships between these two tables.
Step 8: Click ' save' button and close the window
OUTPUT
LAB WORK 35
From the following details calculate Total cost and profit/lost of each quarter for the year 2016 - 2017
by using appropriate query.
QUARTER SALES COST ADM_EXP SELLING_ EXP TOTAL_COST PROFIT_LOSS
Q1 80000 45000 5000 2000
Q2 60000 35000 5000 3000
Q3 50000 30000 6000 4000
Q4 40000 30000 7000 5000
Procedure
Step 1 : In the database window select tables and click create table in design view' under the the tasks
section. A table creation screen will be opened.
Step 2 : Enter the field name and field types
Field Name Field Type
QUARTER TEXT[VARCHAR]
SALES NUMBER[NUMERIC]
COST NUMBER[NUMERIC]
ADM_EXP NUMBER[NUMERIC]
SELLING_ EXP NUMBER[NUMERIC]
Set QUARTER as primary key. Save table name as ‘TBL_SALES’ and close it
Step 3: Open the table’ TBL_SALES’ and enter the sales and cost details of each quarter as seen in the
question.
Step 4 : Create query
In the database window ,click on the queries button and under the task section, click ‘create
queries in design view’
Step 5 : Select the table ‘TBL_SALES’ and click add button. Close the window.
Step 6 : Select all the fields by double clicking on it.
Step 7 : In the next column against the field ,type the formula to calculate TOTAL COST
“COST” + “ADM_COST” + “SELLING_EXP”
and in the ‘alias’ column, type ‘TOTAL_ COST’
Step 8 : In the next column against the field, Type the formula to calculate Profit or Loss
“SALES”-(“COST” + “ADM_COST” + “SELLING_EXP”)
and in the ‘alias column , Type ‘PROFIT_LOSS’
Step 9 : Press F5 or click on Run Query button to display the result
57
www.educom.in
OUTPUT
QUESTIONS