You are on page 1of 54

Informatics College Pokhara

Advanced Database Systems


Development
CC6001NP
Coursework 1

Submitted By: Submitted To:


Student Name: Ravi Pun Ms. Pratibha Gurung
London Met ID: 19031089 Module Leader
Group: C4 Advanced Database
Systems Development
Date: 6-March-2022
Table of Contents
1. Normalization ......................................................................................................................... 1
i. Figure 1 ........................................................................................................................... 1
ii. Figure 2 ....................................................................................................................... 2
2. Final Tables ............................................................................................................................. 4
3. Data Dictionary....................................................................................................................... 5
4. ER-Diagram ........................................................................................................................... 10
a. Initial ER-Diagram ............................................................................................................. 10
b. Final ER-Diagram .............................................................................................................. 11
5. Database Generation ........................................................................................................... 12
a. New user for development .............................................................................................. 12
b. Creating tables ................................................................................................................. 12
c. Inserting data in tables ..................................................................................................... 17
d. Table contents .................................................................................................................. 20
6. Implementation of application............................................................................................. 28
7. Operation on Webforms ...................................................................................................... 33
8. Failures ................................................................................................................................. 41
Oracle Failure ....................................................................................................................... 41
9. User Manual ......................................................................................................................... 42
10. Further Discussion .............................................................................................................. 49
Table of Figures

Figure 1 Initial er diagram ...............................................................................10


Figure 2 final ER diagram ...............................................................................11
Figure 3 create user ........................................................................................12
Figure 4 grant privilages..................................................................................12
Figure 5 create table address .........................................................................12
Figure 6 create table bill ..................................................................................12
Figure 7 create table department ...................................................................13
Figure 8 Create table fee ................................................................................13
Figure 9 Create table Module .........................................................................13
Figure 10 Create table payment......................................................................13
Figure 11 student ............................................................................................13
Figure 12 Create table student_module_assignment .....................................14
Figure 13 Create table student_result .............................................................14
Figure 14 Create table teacher ......................................................................14
Figure 15 Create table teacher module ...........................................................14
Figure 16 Tables altered .................................................................................17
Figure 17 Insert into Address Table ................................................................17
Figure 18Insert into Assignment table .............................................................17
Figure 19Insert into bill table ...........................................................................18
Figure 20 Insert into department table ............................................................18
Figure 21 insert into fee table .........................................................................18
Figure 22 insert into module table ...................................................................18
Figure 23 insert into payment table .................................................................18
Figure 24 insert into student table ..................................................................18
Figure 25 insert into student_module_assignment table .................................19
Figure 26 insert into result table ......................................................................19
Figure 27 insert into teacher table ...................................................................19
Figure 28 insert into teacher_module table .....................................................19
Figure 29 table contents of address ................................................................20
Figure 30 table contents of assignment ..........................................................20
Figure 31 table contents of department...........................................................20
Figure 32 table contents of student .................................................................21
Figure 33 table contents of teacher table .......................................................21
Figure 34 table contents of fee table ...............................................................22
Figure 35 table contents of bill table ...............................................................22
Figure 36 table contents of module table ........................................................23
Figure 37 table contents of module table ........................................................23
Figure 38 table contents of teacher_module table ..........................................24
Figure 39 table contents of module_assignment table ...................................25
Figure 40 table contents of student result table ..............................................26
Figure 41 table contents of student_result table .............................................27
Figure 42 impemntation of home page............................................................28
Figure 43 impemntation of address page ........................................................29
Figure 44 implementation of department page ................................................29
Figure 45 implementation of module page ......................................................30
Figure 46 implementation of student page ......................................................30
Figure 47 implementation of teacher page ......................................................31
Figure 48 teacher module page ......................................................................31
Figure 49 implementation of student_module_assignment page ....................32
Figure 50 implementation of student payment page .......................................32
Figure 51 before add in address page ............................................................33
Figure 52 after add in address page ...............................................................34
Figure 53 before add in department page .......................................................34
Figure 54 after add in department ...................................................................35
Figure 55before in module page .....................................................................35
Figure 56after data entry in module page .......................................................36
Figure 57before add in student .......................................................................36
Figure 58 after add in student .........................................................................37
Figure 59before add in techer .........................................................................37
Figure 60after add in teacher ..........................................................................38
Figure 61 teacher module representation .......................................................38
Figure 62 teacher module representation2 .....................................................39
Figure 63 student module assignment representation ....................................39
Figure 64 student_module_representaion2.....................................................40
Figure 65student_payment representation ......................................................40
Figure 66 student payment representation2 ....................................................40
Figure 67 failure ..............................................................................................41
Figure 68 manual1 ..........................................................................................42
Figure 69 manual2 ..........................................................................................42
Figure 70 manual3 ..........................................................................................43
Figure 71 manual4 ..........................................................................................43
Figure 72 manual5 ..........................................................................................44
Figure 73 manual6 ..........................................................................................44
Figure 74 manual7 ..........................................................................................45
Figure 75 manual8 ..........................................................................................45
Figure 76 manual8 ..........................................................................................46
Figure 77 manual9 ..........................................................................................46
Figure 78 manual10 ........................................................................................47
Figure 79 manual11 ........................................................................................47
Figure 80 manual13 ........................................................................................48
Figure 81 manual14 ........................................................................................48
Table of Tables

Table 1 Address table .......................................................................................5


Table 2 : Assignment Table ..............................................................................5
Table 3 Bill Table ..............................................................................................5
Table 4 Department table..................................................................................6
Table 5 Fee Table .............................................................................................6
Table 6 Module table.........................................................................................6
Table 7 Payment table ......................................................................................7
Table 8student table..........................................................................................7
Table 9 student module assignment table.........................................................8
Table 10 student result table .............................................................................9
Table 11 teacher table ......................................................................................9
Table 12 teacher module table ..........................................................................9
CC6001NP Advanced Database Systems Development

1. Normalization
i. Figure 1
a. UNF

Table organized by separating repeating groups in bracket,


Teacher (Teach_ID, Teach_Name, Email, {Address},
{Mod_Id, Mod_Name, Credit_Hours})

b. 1NF

After Removing repeating groups,


Address1 (Ad_ID, Nation, City, StreetName)
Teacher1 (Teach_ID, Teach_Name, Email, AD_ID)
Module1 (Mod_id, Mod_Name, Credit_Hours, Teach_ID)

c. 2NF

After Removing partial dependency


Address2 (Ad_ID, Nation, City, StreetName)
Teacher2 (Teach_ID, Teach_Name, Email, AD_ID1,AD_ID2)
Module2 (Mod_id, Mod_Name, Credit_Hours)
Teacher_Module2 (Teach_ID,Mod_id, Working_Hour)

Ravi Pun 1
CC6001NP Advanced Database Systems Development

ii. Figure 2
a. UNF

Table organized by separating repeating groups in bracket,


Student (Std_ID, Std_name, {Mod_ID,Mod_name,
grade,Status,Assign_Type}, Year, Total_grade)

b. 1NF

After removing repeating groups,


Address1 (Ad_ID, nation, City, StreetName)
Student1 (Std_id, Std_name, Ad_ID, Year, Total_Grade)
Module1 (Mod_ID, Mod_name, Std_id, Assign_type, Grade,
Status)

c. 2NF

After removing Partial dependency


Address2 (Ad_ID, nation, City, StreetName)
Student2 (Std_ID, Std_name, Ad_ID, Year, Total_Grade)
Module2 (Mod_ID, Mod_name, Assign_type, Grade, Status)
Student_Module2 (Std_ID, Mod_ID)

Ravi Pun 2
CC6001NP Advanced Database Systems Development

d. 3NF

After removing Transitive Dependencies


Address3 (Ad_ID, nation, City, StreetName)
Student3(Std_ID, Std_name, Ad_ID1, Ad_ID2)
Assignmnet3 (Assign_ID, Assign_type)
Module3(Mod_ID, Mod_name, Assign_ID, Grade, Status)
Student_module_Assignment3 ( Std_ID, Mod_ID,
Assign_ID1_Grade, Assign_ID2_Grade, Assign_ID3_Grade,
mod_totalgrdade, Status)
Student_Result3 (Std_ID, Mod_ID1_Grade, Mod_ID2_Grade,
Mod_ID3_Grade, Mod_ID4_Grade, Mod_ID5_Grade,
Total_grade, Year)

Assumption
• Three assignments are required for each module.
• A person is required to provide an address.
• To minimize additional address breakdown, the street
number and name are combined.
• In fig 2 normalization, the year and final grade are added to
better comprehend the student-module-assignment-grade
relationship.

Integration
The resulting tables from the provided data are insufficient to
create the desired system. As a result, we'll need to create certain
tables. Their characteristics are given below.
• Department (Dp_ID, Dp_Name)
• Fee (fee_id, fee_total, year, fee_structure)
• Bill (Bill_ID,fee_id, bill_total, Bill_Date, Stu_ID)
• payment (payment_id, bill_id, stu_id, payment_total,
payment_date)

Ravi Pun 3
CC6001NP Advanced Database Systems Development

2. Final Tables
Final table for the development is formed from normalization of figure 2
and few new tables and attributes are added.

Department (Dp_ID, Dp_Name)

Fee (fee_id, fee_total, year, fee_structure)

Teacher (Teach_ID, Teach_Name, Email, AD_ID1,AD_ID2)

Teacher_Module (Teach_ID,Mod_id, Working_Hour)

Bill (Bill_ID,fee_id, bill_total, Bill_Date, Stu_ID)

payment (payment_id, bill_id, stu_id, payment_total, payment_date)

Address (Ad_ID, nation, City, StreetName)

Student(Std_ID, Std_name, Ad_ID1, Ad_ID2)

Assignmnet (Assign_ID, Assign_type)

Module(Mod_ID, Mod_name, Assign_ID, Grade, Status)

Student_module_Assignment ( Std_ID, Mod_ID, Assign_ID1_Grade,


Assign_ID2_Grade, Assign_ID3_Grade, mod_totalgrdade, Status)

Student_Result (Std_ID, Mod_ID1_Grade, Mod_ID2_Grade, Mod_ID3_Grade,


Mod_ID4_Grade, Mod_ID5_Grade, Total_grade, Year)

Ravi Pun 4
CC6001NP Advanced Database Systems Development

3. Data Dictionary
a. For Address Table
Table 1 Address table

Attributes Data types Constraints


AD_ID NUMBER Primary key
NATION Varchar (20) Not null
CITY Varchar (20) Not null
STREET Varchar (20)

b. For Assignment Table


Table 2 : Assignment Table

Attributes Data types Constraints


ASSIGN_ID NUMBER Primary key
ASSIGN_TYPE Varchar (20) Not null

c. For Bill Table


Table 3 Bill Table

Attributes Data types Constraints


BILL_ID Varchar (20) Primary key

FEE_ID Number Foreign key,


Unique

STU_ID Number Foreign key,


Unique

BILL_TOTAL Number Not Null

BILL_DATE Date Not Null

Ravi Pun 5
CC6001NP Advanced Database Systems Development

d. For Department Table


Table 4 Department table

Attributes Data types Constraints


DP_ID Number Primary key
DP_NAME Varchar (20) Not null
e. For Fee Table
Table 5 Fee Table

Attributes Data types Constraints


FEE_ID Number Primary key
FEE_TOTAL Number Not null
YEAR Varchar (20) Not null

FEE_STRUCTURE Number Not null


(620
f. For Module Table
Table 6 Module table

Attributes Data types Constraints


MOD_ID Varchar (20) Primary key
MOD_NAME Varchar (20) Not Null

CREDIT_HOURS Varchar (20) Not null


ASSIGN_ID1 Number Foreign key

ASSIGN_ID2 Number Foreign key

ASSIGN_ID3 Number Foreign key

g. For Payment Table

Ravi Pun 6
CC6001NP Advanced Database Systems Development

Table 7 Payment table

Attributes Data types Constraints


PAYMENT_ID Varchar (20) Primary key

BILL_ID Varchar (20) Foreign key

STU_ID Number Foreign key

PAYMENT_TOTAL Number Not null


PAYMENT_DATE Date Not null

h. For Student Table


Table 8student table

Attributes Data types Constraints


STU_ID Number Primary key
STU_NAME Varchar (20) Not null

AD_ID1 Number Foreign key,


Unique

AD_ID2 Number Foreign key,


Unique

Ravi Pun 7
CC6001NP Advanced Database Systems Development

i. For Student_module_assignment Table


Table 9 student module assignment table

Attributes Data types Constraints


STU_ID NUMBER Foreign key

MOD_ID VARCHAR2(20 BYTE) Foreign key

ASSIGN_ID1_GRADE VARCHAR2(20 BYTE) Not Null

ASSIGN_ID2GRADE VARCHAR2(20 BYTE) Not Null

ASSIGN_ID3_GRADE VARCHAR2(20 BYTE) Not Null

MOD_TOTALGRADE VARCHAR2(20 BYTE) Not Null

STATUS VARCHAR2(20 BYTE) Not Null

Ravi Pun 8
CC6001NP Advanced Database Systems Development

j. For Student_Result Table


Table 10 student result table

Attributes Data types Constraints


STU_ID NUMBER Foreign key
MOD_ID1_GRADE VARCHAR2(20 BYTE) Not Null
MOD_ID2_GRADE VARCHAR2(20 BYTE) Nullable
MOD_ID3_GRADE VARCHAR2(20 BYTE) Nullable
MOD_ID4_GRADE VARCHAR2(20 BYTE) Nullable
MOD_ID5_GRADE VARCHAR2(20 BYTE) Nullable
TOTAL_GRADE VARCHAR2(20 BYTE) Not Null
YEAR VARCHAR2(20 BYTE) Not Null

k. For Teacher Table


Table 11 teacher table

Attributes Data types Constraints


TEACH_ID NUMBER Primary Key
TEACH_NAME VARCHAR2(20 BYTE) Not Null
EMAIL VARCHAR2(20 BYTE) Not Null
AD_ID1 NUMBER Foreign key
AD_ID2 NUMBER Foreign key
DP_ID NUMBER Foreign key

l. For Teacher_module Table


Table 12 teacher module table

Attributes Data types Constraints


TEACH_ID NUMBER Foreign key
MOD_ID VARCHAR2(20 BYTE) Foreign key
WORKING_HOUR VARCHAR2(20 BYTE) Not Null

Ravi Pun 9
CC6001NP Advanced Database Systems Development

4. ER-Diagram
a. Initial ER-Diagram

Figure 1 Initial er diagram

Ravi Pun 10
CC6001NP Advanced Database Systems Development

b. Final ER-Diagram

Figure 2 final ER diagram

Ravi Pun 11
CC6001NP Advanced Database Systems Development

5. Database Generation
a. New user for development
I. Create user

Figure 3 create user

II. Grant privileges

Figure 4 grant privilages

b. Creating tables
Tables were initially created then altered to make primary and foreign keys.

Table Creation

Figure 5 create table address

Figure 6 create table bill

Ravi Pun 12
CC6001NP Advanced Database Systems Development

Figure 7 create table department

Figure 8 Create table fee

Figure 9 Create table Module

Figure 10 Create table payment

Figure 11 student

Ravi Pun 13
CC6001NP Advanced Database Systems Development

Figure 12 Create table student_module_assignment

Figure 13 Create table student_result

Figure 14 Create table teacher

Figure 15 Create table teacher module

Table Alteration.

Ravi Pun 14
CC6001NP Advanced Database Systems Development

Ravi Pun 15
CC6001NP Advanced Database Systems Development

Ravi Pun 16
CC6001NP Advanced Database Systems Development

Figure 16 Tables altered

c. Inserting data in tables


I. Insert into Address table

Figure 17 Insert into Address Table

II. Insert into Assignment table

Figure 18Insert into Assignment table

III. Inserting into Bill

Ravi Pun 17
CC6001NP Advanced Database Systems Development

Figure 19Insert into bill table

IV. Inserting into Department

Figure 20 Insert into department table

V. Inserting into Fee

Figure 21 insert into fee table

VI. Inserting into Module

Figure 22 insert into module table

VII. Inserting into Payment

Figure 23 insert into payment table

VIII. Inserting into Student

Figure 24 insert into student table

Ravi Pun 18
CC6001NP Advanced Database Systems Development

IX. Inserting into Student_Module_Assignment

Figure 25 insert into student_module_assignment table

X. Inserting into Result

Figure 26 insert into result table

XI. Inserting into Teacher

Figure 27 insert into teacher table

XII. Inserting into Teacher_module

Figure 28 insert into teacher_module table

Ravi Pun 19
CC6001NP Advanced Database Systems Development

d. Table contents

Figure 29 table contents of address

Figure 30 table contents of assignment

Figure 31 table contents of department

Ravi Pun 20
CC6001NP Advanced Database Systems Development

Figure 32 table contents of student

Figure 33 table contents of teacher table

Ravi Pun 21
CC6001NP Advanced Database Systems Development

Figure 34 table contents of fee table

Figure 35 table contents of bill table

Ravi Pun 22
CC6001NP Advanced Database Systems Development

Figure 36 table contents of module table

Figure 37 table contents of module table

Ravi Pun 23
CC6001NP Advanced Database Systems Development

Figure 38 table contents of teacher_module table

Ravi Pun 24
CC6001NP Advanced Database Systems Development

Figure 39 table contents of module_assignment table

Ravi Pun 25
CC6001NP Advanced Database Systems Development

Figure 40 table contents of student result table

Ravi Pun 26
CC6001NP Advanced Database Systems Development

Figure 41 table contents of student_result table

Ravi Pun 27
CC6001NP Advanced Database Systems Development

6. Implementation of application
I. Implementation of Home page

Figure 42 impemntation of home page

Ravi Pun 28
CC6001NP Advanced Database Systems Development

II. Implementation of Address page

Figure 43 impemntation of address page

III. Implementation of Department page

Figure 44 implementation of department page

Ravi Pun 29
CC6001NP Advanced Database Systems Development

IV. Implementation of Module page

Figure 45 implementation of module page

V. Implementation of Student page

Figure 46 implementation of student page

Ravi Pun 30
CC6001NP Advanced Database Systems Development

VI. Implementation of Teacher page

Figure 47 implementation of teacher page

VII. Implementation of Teacher module page

Figure 48 teacher module page

Ravi Pun 31
CC6001NP Advanced Database Systems Development

VIII. Implementation of Student Module Assignment page

Figure 49 implementation of student_module_assignment page

IX. Implementation of Student payment page

Figure 50 implementation of student payment page

Ravi Pun 32
CC6001NP Advanced Database Systems Development

7. Operation on Webforms
I. Address Page

Figure 51 before add in address page

Ravi Pun 33
CC6001NP Advanced Database Systems Development

Figure 52 after add in address page

II. Department Page

Figure 53 before add in department page

Ravi Pun 34
CC6001NP Advanced Database Systems Development

Figure 54 after add in department

III. Module Page

Figure 55before in module page

Ravi Pun 35
CC6001NP Advanced Database Systems Development

Figure 56after data entry in module page

IV. Student Page

Figure 57before add in student

Ravi Pun 36
CC6001NP Advanced Database Systems Development

Figure 58 after add in student

V. Teacher Page

Figure 59before add in techer

Ravi Pun 37
CC6001NP Advanced Database Systems Development

Figure 60after add in teacher

VI. Teacher Module

Figure 61 teacher module representation

Ravi Pun 38
CC6001NP Advanced Database Systems Development

Figure 62 teacher module representation2

VII. Student Module Assignment

Figure 63 student module assignment representation

Ravi Pun 39
CC6001NP Advanced Database Systems Development

Figure 64 student_module_representaion2

VIII. Student Payment

Figure 65student_payment representation

Figure 66 student payment representation2

Ravi Pun 40
CC6001NP Advanced Database Systems Development

8. Failures
Oracle Failure
While developing, an issue occurred with Oracle when attempting to connect
with Visual Studio.

Figure 67 failure

To fix the problem, I downloaded and installed Oracle 32-bit, as I had previously installed
Oracle 64-bit.

Ravi Pun 41
CC6001NP Advanced Database Systems Development

9. User Manual
a. Choosing Webform Link

Figure 68 manual1

Among these web forms click on any one which you want to go for.
b. Adding data in Address page

To add data in Address page, follow the instructions as below:


Step 1: Add data in the text field as shown in the given figure,

Figure 69 manual2

Step 2: Click Save button. And Data is added to Database.

Ravi Pun 42
CC6001NP Advanced Database Systems Development

c. To Edit and delete Data in Address Page

Figure 70 manual3

In order to edit click on the edit options colored with green color and to delete click on
the delete option colored with red color.
d. Adding Data in Department Page
To add data in Department page, follow the instructions as below:
Step 1: Add data in the text field as shown in the given figure,
Step 2: Click Save button. And Data is added to Database.

Figure 71 manual4

e. To Edit and delete Data in Department Page

Ravi Pun 43
CC6001NP Advanced Database Systems Development

In order to edit click on the edit options colored with green color and to delete click on
the delete option colored with red color.

Figure 72 manual5

f. Adding Data in Module Page


To add data in Module page, follow the instructions as below:
Step 1: Add data in the text field as shown in the given figure,
Step 2: Click Save button. And Data is added to Database.

Figure 73 manual6

g. To Edit and delete Data in Module Page


In order to edit click on the edit options colored with green color and to delete click on
the delete option colored with red color.

Ravi Pun 44
CC6001NP Advanced Database Systems Development

Figure 74 manual7

h. Adding Data in Student Page


To add data in Student page, follow the instructions as below:
Step 1: Add data in the text field as shown in the given figure,
Step 2: Click Save button. And Data is added to Database.

Figure 75 manual8

Ravi Pun 45
CC6001NP Advanced Database Systems Development

i. To Edit and delete Data in Student Page


In order to edit click on the edit options colored with green color and to delete click on
the delete option colored with red color.

Figure 76 manual8

j. Adding Data in Teacher Page


To add data in Teacher page, follow the instructions as below:
Step 1: Add data in the text field as shown in the given figure,
Step 2: Click Save button. And Data is added to Database.

Figure 77 manual9

k. To Edit and delete Data in Teacher Page

Ravi Pun 46
CC6001NP Advanced Database Systems Development

In order to edit click on the edit options colored with green color and to delete click on
the delete option colored with red color.

Figure 78 manual10

l. To view Teacher module


Click on the dropdown menu to choose Teacher.

Figure 79 manual11

Ravi Pun 47
CC6001NP Advanced Database Systems Development

m. To view Module Assignments


Click on the dropdown menu to choose Student.

Figure 80 manual13

n. To view student payment


Click on the dropdown menu to choose Student.

Figure 81 manual14

Ravi Pun 48
CC6001NP Advanced Database Systems Development

10. Further Discussion


This course taught me how to create online applications with ASP.NET
and C#, as well as how to use a database and integrate it into a built application
so that users may add, edit, and remove data. It was challenging to code in C#
for back-end development while still supporting the application's UI. Through
web research and the assistance of the module leader, I learnt how to use
HTML and CSS for ASP.NET. After conducting extensive study, I implemented
some of my ideas to allow users to alter data with ease.

I learnt new concepts about development and how the delivery system works
thanks to this coursework. Despite the fact that I learnt and had additional ideas
as a result of my study, I was unable to include all of them into this homework.

Ravi Pun 49

You might also like