Practical No.
11
Database Concepts using LibreOffice Base
SOP 1 : Create a table student with fieldnames – rollno,studname,class,div,city,dob etc.
Insert minimum 8 records.
Create a form based on student table.
Solution :-
1) Steps for Creating a Database :
a) Click on Start → All Programs → Libre Office → Libre Office Base
b) Database wizard window appears, select Save and Proceed → Click on Finish botton,
select proper location where you wish to save the database with appropriate name,database
will be created.
2)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 :
Fieldname DataType Description
Rollno Number[NUMERIC] Rollno of student(Primary Key)
Studentname Text[VARCHAR] Name of student
Class Text[VARCHAR] Class of student
Div Text[VARCHAR] Division of student
City Text[VARCHAR] City of student
Dob Date[DATE] Date of birth of student
b) To assign primary key to rollno 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 student and click on
OK button,table will be saved.
3) 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.
4) Steps for Creating a Form:
a) From left pane click on Form object.
b) From right pane click on User wizard to create a form,from wizard window appears.
c) Shift fields from Available Fields list to fields in form list by clicking on arrow button
then click on Next button.
d) Click on Next button.
e) Select any one arrangement for main form for placing the controls and click on Next
button.
f) Click on Next button.
g) Select style for the form and click on Next button.
h) Type name of the form and click on Finish button.
i) To add new record click on new record icon present on Navigation toolbar,fill record and
click on save record icon.
Output: