Database - SOP 2
Database - 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.