You are on page 1of 3

Republic of the Philippines

CAVITE STATE UNIVERSITY


Don Severino delas Alas Campus
Indang, Cavite

DCIT 24 – Information Management


Laboratory Exercise 2: Creating Tables and Views in LibreOffice Base
Prepared by: James Angelo V. Aves

Procedures:

1. Create a new LibreOffice Base database file.


2. Create the following (tblCustomer).
Field Name Data Type Field Properties
custID Text[VARCHAR] Length: 20, Primary Key
custName Text[VARCHAR] Length : 50
custAddress Text[VARCHAR] Length: 100
custBdate Date Format: YYYY-MM-DD
3. Create another table (tblProduct)
Field Name Data Type Field Properties
prodID Number Length: 100, Primary Key
prodName Text[VARCHAR] Length : 100
prodPrice Decimal Decimal Places: 2

4. Create another table (tblOrder)


Field Name Data Type Field Properties
orderID Integer AutoValue: Yes
custID Text[VARCHAR] Length : 20
prodID Number Length: 100
orderQty Integer
orderDate Date Format: YYYY-MM-DD

5. Insert the following data for tblCustomer.


custID custName custAddress custBdate
c123 James Angelo Aves Indang, Cavite 2018-06-18
c124 Juan Dela Cruz Trece Martires 2018-07-18
c125 Maria Clara Tanza, Cavite 2018-08-18

6. Insert the following data for tblProduct.


prodID prodName prodPrice
1 Adobong Manok 35.00
2 Fried Chicken 30.00
3 Sinigang na Baboy 35.50
4 Baked Salmon 105.25
7. Insert the following data for tblOrder.
orderID custID prodID orderQty orderDate
0 c123 1 1 2019-01-01
1 c123 4 2 2019-01-01
2 c125 2 3 2019-01-02
3 c124 3 1 2019-01-02

8. Click Create View...


9. Connect the following (save it as View1)
tblCustomer.custID – tblOrder.custID
tblProduct.prodID – tblOrder.prodID
10. Final Output (Listen to your instructor on how to produce the final output)
Name: ___________________________________ Course, Yr. & Sec: ___________
Student Number: __________________________ Date: ______________________

DCIT 24 – Information Management


Laboratory Exercise 2: Creating Tables and Views in LibreOffice Base

Laboratory Grading Rubric


Criteria Definition Points Possible Earned Points
Student was able follow
Discussion 20
directions given in activity.

Student was able to create


Coding Skills a working database 30
efficiently

Student demonstrated
clear understanding of the
Scientific Understanding 30
science behind relational
database

This includes attendance


Class Participation and participation to class 20
discussion

Total 100

You might also like