0% found this document useful (0 votes)
240 views5 pages

Database - SOP 2

Uploaded by

Etteka Dhalait
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)
240 views5 pages

Database - SOP 2

Uploaded by

Etteka Dhalait
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/ 5

Database using Libre Office Base-SOP 2

SOP 2:
 Create table employee with fields names-empid, empname, empdept, empqual, empjoindate,
empsal etc.
 Insert minimum 8 records.
1. Where employee qualification is “MBA”
2. Where employee department is “Accounts”
3. Where employee salary > 70000
4. Where employee name is “Mr. Suhas Kale”
Solution:
i) Steps for creating a database:
 Click on Start-> All Program -> Libre office -> Libre office base.
 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:
 To create a table, click on Create table in design view -> Table design window appears, in that window
set fieldname, datatype as follows:

 To assign PRIMARY KEY to empid field, right click on the small button present on the left side of the fieldname
and select Primary key option.
 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:


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 the field’s columns.
Solve the following Queries
a) To display records where employee qualification is “MBA”. In Criterion type “MBA” and click on Run query
icon or Press F5 function key.
b) To display records where employee department is “ACCOUNTS” In Criterion type “ACCOUNTS” and click on
Run Query or Press F5 function key.

c) To display records where employee salary > 70000


In Criterion type “70,000” and click on Run Query icon or Press F5 function key.
d) To display records where employee name is “Mr. Suhas kale””
In Criterion type “Mr. Suhas Kale” and click on Run Query icon or Press F5 function key.

You might also like