Salvador Lab 3 Part 2
Salvador Lab 3 Part 2
Set-up a Database for the following System with the following specifications:
Online Thesis Archive Specification
Description: Stores records of Research works from different Colleges of Filipino State
University
1. Research Classification may be one of the following:
a. Thesis
b. Capstone
c. Publications
d. Copyrighted Output
2. Colleges may be one of the following:
a. College of Computer Studies
b. College of Science and Mathematics
c. College of Engineering
d. College of Education
e. College of Arts and Social Sciences
f. College of Business Administration and Accountancy
3. Each record of Research work must include the following information:
a. Research ID
b. Title of Research
c. Research Classification
d. Year of Research
e. Name(s) of Authors - authors may be one of the following classifications
i. Faculty Member
ii. Student
iii. Staff
f. Faculty Adviser (if applicable)
g. Name of Conference/Journal Publication (if any)
h. Abstract of Research work
i. Link of Downloadable Research Work
4. Each author has the following details
a. ID
b. Name
c. College
Activity Description:
Load initial data to your DB with the following dummy details in a way that:
a. Each College will have at least 4 Research Works on years 2014, 2015, and 2016
b. 2 of each research belongs to the same Professor per college in years 2014 - 2015
c. 1 of each research belongs to a student per college on year 2016
d. 1 of each research belongs to a staff per college on year 2016
e. Input dummy data on other fields
1
I. Create an ERD diagram to represent the tables and attributes needed for this system.
Use DeZign software. (50 points)
II. Create the physical design of the tables by observing the need for the proper usage of
the following: (10 points per table)
a. NOT NULL CONSTRAINT
b. NULL VALUES
c. PRIMARY KEY
d. FOREIGN KEY
e. AUTOINCREMENT in every record of research
2
3
4
III. Submit the script needed in order to produce the following VIEWS:
1. Display all research work from the School of Computer Studies with the following details:
a. Title of Research
b. Name(s) of Authors
c. Year of Research
2. Display all names of students that produced research work in years 2014 to 2016
5
3. Display all names of teachers that produced research works in year 2015 and 2016
4. Display all research work from all Teachers on year 2016 with the following details
a. Title of Research
b. Name(s) of Authors
c. Year of Research
d. Name of Conference/Journal Publication (if any)
6
5. Create Functions() that returns the following:
7
c. Total Number of Research Records in Year 2014
8
e. Total Number of Researchers from
i. College of Computer Studies
9
iii. College of Engineering
10
b. Number of researches produced by the School of Computer Studies
11
d. Number of researches produced by Students
12
f. Average number of researches produced every year
13