0% found this document useful (0 votes)
42 views

Salvador Lab 3 Part 2

lab works
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views

Salvador Lab 3 Part 2

lab works
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

IT 183 Lab 3

NAME: SALVADOR, Gaudencio Jr. J. DATE: 11-19-2018

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

5. System can be accessed/viewed/updated by the following user types with a corresponding


restriction:
a. System Administrator - which can:
i. Add/Edit/Delete Record
ii. Add/Edit/Delete Users
iii. Upload PDF format of research work
b. Author - which can
i. Add/Edit His/Own Records
ii. Upload PDF format of research work
iii. Download PDF format of research work
c. Page Visitors - which can
i. View only A to F of number 3

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)

a. Analyze the relationships between tables


b. Exhaust all the possible attributes for each table but make sure that they are all
normalized
c. Provide the image of the ERD diagram

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:

a. Total Number of Research Records

b. Total Number of Research Records in Year 2016

7
c. Total Number of Research Records in Year 2014

d. Total Number of Researchers

8
e. Total Number of Researchers from
i. College of Computer Studies

ii. College of Science and Mathematics

9
iii. College of Engineering

6. Utilize PostgreSQL Functions to display the following:


a. Number of researches produced in year 2016

10
b. Number of researches produced by the School of Computer Studies

c. Number of researches produced by Teachers

11
d. Number of researches produced by Students

e. Number of researches produced by Staff

12
f. Average number of researches produced every year

g. All Titles of researches produced by the College of Engineering

13

You might also like