file-based database design
Assessment 1_602/ERD- ENTITY RELATIONSHIP DIASRAM (1).pdf
Assessment 1_602/REPORT_ASSESSMENT_1.docx
ASSESSMENT 1 MIS604
DATABASE MODELLING AND DATABASE DESIGNING
REPORT ON DATABASE OF THE TORRENS UNIVERSITY AUSTRALIA
Data is known as the facts or information that we are using every day for carrying our services. Whereas database is the collection of those facts or information and is found in an appropriate organized manner. Now when we are arranging our data or facts into a form of tables with rows and columns this process is known as the data modelling.
So, first of all, when I have started collecting the data about Torrens University, I have first draw ERD diagram, the major reason behind this was to get an idea about the relationship between the objects and their attributes. Thus, I have found that there are 4 main entities in this database, the University, Student, Course and Lecturer. Similarly, there are several attributes linked to these mentioned entities, such as, Student id, First name, Last name, Course Id, Course name, Lecturer name and so on. This is also known as a data modelling. Thus, drawing a diagram was an easy task, however, finding a relationship between them was a little tricky.
So, I have used crow’s notation to demonstrate their relationship and have used the bridge as well. Further up, now it is a time to put all the data into the table form into the excel spreadsheet. When I have started, I found it easy to distribute the data into rows and columns. I have used three different tables for each entity, student, course and lecturer.
The major reasoning using three different tables to avoid the mixing of data and further complexities. I have used, student Id, course id and lecturer Id as the primary keys to demonstrate the value of the all other related attributes. Also, there is a composite key that I have used to prevent data anomalies, which is a combination of Student ID and First Name. Moving further, in version one and two everything was going smoothly, I have deleted two rows easily followed by the addition of the 5 new rows, under those same attributes. So far, I did not face much issue.
However, the problem comes up when I moved to version 3, where I have to delete the two existing data rows and have to add two new attributes. An insertion and deletion anomalies occurred that leads to the data inconsistency. The reason is, student has got relationship with the course in which they have enrolled and with the lecturer who is teaching them. So, if we are deleting something in student table then it automatically got deleted from the course table and then from lecturer table as well. Likewise, while adding a new information into the student table, we have to update into another two tables as well.
Therefore, I preferred to apply the concept of normalization of the data to avoid any data inconsistency. This makes the database less complex and more informative.
Hence, the major part that I have done is I have further split the table using composite key, where I have easily added two new attributes without affecting data in the rows in the primary table. I have tried another way as well where I have just simply added two more columns with new attributes, but I have faced hurdle, as while I was deleting the existing rows, information in those table also got deleted and vice versa, creates a deletion anomaly. Therefore, to prevent this I have created two separate new tables with composite key, where I can easily add, update, insert and delete the data without affecting other tables.
Overall, it was good experience, I got to know the concept of relationship within the entities and attributes. I have practically applied the normalization concept, found the anomalies within the database and taken the best possible step, by separating the table using composite key. I have also used color highlights to show the changes that I have made in the tables.
Assessment 1_602/TUA_DATABASE TABLE_ASSESSMENT 1.xlsx
Version 1
| STUDENT | STUDENT ID | FNAME | LNAME | D.O.B | COURSE | COURSE ID | COURSE NAME | LOCATION | LECTURER | LECTURER ID | FNAME | LNAME |
| 00229977T | ALEX | SMITH | 12/1/95 | MGT4068 | PROJECT MANAGEMENT | THE ROCKS | TUA7711 | JAMIE | TIM | |||
| 00229978T | JOE | BERNER | 29/04/1989 | MGT4069 | BUSINESS COMMUNIACTION | KENT STREET | TUA7712 | KEVIN | CHIAN | |||
| 00229979T | JAMES | ANDERSON | 15/09/1991 | MGT4070 | BUSINESS ENVIRONMENT | PYRMONT | TUA7713 | HEINZ | HERMAN | |||
| 00229980T | RINA | SHARMA | 22/02/1986 | MGT4071 | SYSTEM ANALYSIS | SYDNEY CBD | TUA7714 | JONNA | BILLY | |||
| 00229981T | MOHAN | KUMAR | 13/05/1994 | MGT4072 | PROGRAMMING | TOWN HALL | TUA7715 | RAKESH | VERMA | |||
| 00229982T | MARIA | BELLE | 10/08/1889 | MGT4073 | STATISTICS AND MATHS | PITT STREET | TUA7716 | ROWAN | SYED | |||
| 00229983T | SUE | XIANG | 30/10/1990 | MGT4074 | STRATEGIC MANAGEMENT | KENT STREET | TUA7717 | MO | KADAR | |||
| 00229984T | XIO | YANG | 19/04/1985 | MGT4075 | DATA BASE MODELING | THE ROCKS | TUA7718 | LEENA | ROY | |||
| 00229985T | PETER | ROBERT | 20/01/1992 | MGT4076 | LANGUAGE AND LITERACY | WYNARD | TUA7719 | MARINA | JIN | |||
| 00229986T | MAX | LEE | 16/09/1987 | MGT4077 | COMPUTER SCIENCE | CIRCULAR QUAY | TUA7720 | SHAH | ROMIE | |||
Version 1.2
| STUDENT | STUDENT ID | FNAME | LNAME | D.O.B | COURSE | COURSE ID | COURSE NAME | LOCATION | LECTURER | LECTURER ID | FNAME | LNAME |
| 00229977T | ALEX | SMITH | 12/1/95 | MGT4068 | PROJECT MANAGEMENT | THE ROCKS | TUA7711 | JAMIE | TIM | |||
| 00229978T | JOE | BERNER | 29/04/1989 | MGT4069 | BUSINESS COMMUNIACTION | KENT STREET | TUA7712 | KEVIN | CHIAN | |||
| 00229979T | JAMES | ANDERSON | 15/09/1991 | MGT4070 | BUSINESS ENVIRONMENT | PYRMONT | TUA7713 | HEINZ | HERMAN | |||
| 00229980T | RINA | SHARMA | 22/02/1986 | MGT4071 | SYSTEM ANALYSIS | SYDNEY CBD | TUA7714 | JONNA | BILLY | |||
| 00229981T | MOHAN | KUMAR | 13/05/1994 | MGT4072 | PROGRAMMING | TOWN HALL | TUA7715 | RAKESH | VERMA | |||
| 00229982T | MARIA | BELLE | 10/08/1889 | MGT4073 | STATISTICS AND MATHS | PITT STREET | TUA7716 | ROWAN | SYED | |||
| 00229983T | SUE | XIANG | 30/10/1990 | MGT4074 | STRATEGIC MANAGEMENT | KENT STREET | TUA7717 | MO | KADAR | |||
| 00229984T | XIO | YANG | 19/04/1985 | MGT4075 | DATA BASE MODELING | THE ROCKS | TUA7718 | LEENA | ROY | |||
| DELETED ROWS | MGT4076 | LANGUAGE AND LITERACY | WYNARD | TUA7719 | MARINA | JIN | ||||||
| DELETED ROWS | MGT4077 | COMPUTER SCIENCE | CIRCULAR QUAY | TUA7720 | SHAH | ROMIE | ||||||
| 00229985T | PRIYAH | REDDY | 6/1/84 | ADDED | ||||||||
| 00229985T | XIANG | XUEING | 7/19/89 | ADDED | ||||||||
| 00229985T | KIRTI | RAI | 2/11/87 | ADDED | ||||||||
| 00229985T | RAMAN | KAUR | 4/21/88 | ADDED | ||||||||
| 00229985T | ZOEY | SYAED | 10/13/90 | ADDED |
Version 1.3
| STUDENT | STUDENT ID | FNAME | LNAME | D.O.B | COURSE | COURSE ID | COURSE NAME | LOCATION | LECTURER | LECTURER ID | FNAME | LNAME |
| 00229977T | ALEX | SMITH | 12/1/95 | MGT4068 | PROJECT MANAGEMENT | THE ROCKS | TUA7711 | JAMIE | TIM | |||
| 00229978T | JOE | BERNER | 29/04/1989 | MGT4069 | BUSINESS COMMUNIACTION | KENT STREET | TUA7712 | KEVIN | CHIAN | |||
| 00229979T | JAMES | ANDERSON | 15/09/1991 | MGT4070 | BUSINESS ENVIRONMENT | PYRMONT | TUA7713 | HEINZ | HERMAN | |||
| 00229980T | RINA | SHARMA | 22/02/1986 | MGT4071 | SYSTEM ANALYSIS | SYDNEY CBD | TUA7714 | JONNA | BILLY | |||
| 00229981T | MOHAN | KUMAR | 13/05/1994 | MGT4072 | PROGRAMMING | TOWN HALL | TUA7715 | RAKESH | VERMA | |||
| 00229982T | MARIA | BELLE | 10/08/1889 | MGT4073 | STATISTICS AND MATHS | PITT STREET | TUA7716 | ROWAN | SYED | |||
| 00229983T | SUE | XIANG | 30/10/1990 | MGT4074 | STRATEGIC MANAGEMENT | KENT STREET | TUA7717 | MO | KADAR | |||
| 00229984T | XIO | YANG | 19/04/1985 | MGT4075 | DATA BASE MODELING | THE ROCKS | TUA7718 | LEENA | ROY | |||
| ROWS HAS BEEN DELETED | MGT4076 | LANGUAGE AND LITERACY | WYNARD | TUA7719 | MARINA | JIN | ||||||
| ROWS HAS BEEN DELETED | MGT4077 | COMPUTER SCIENCE | CIRCULAR QUAY | TUA7720 | SHAH | ROMIE | ||||||
| 00229985T | PRIYAH | REDDY | 6/1/84 | |||||||||
| 00229986T | XIANG | XUEING | 7/19/89 | |||||||||
| 00229987T | KIRTI | RAI | 2/11/87 | |||||||||
| 00229988T | RAMAN | KAUR | 4/21/88 | |||||||||
| 00229989T | ZOEY | SYAED | 10/13/90 | |||||||||
| STUDENT | STUDENT ID | FNAME | ADDRESS | NEW ATTRIBUTE ADDED | ||||||||
| 00229977T | ALEX | 45, GEORGE ST, SYD CBD | STUDENT | STUDENT ID | FNAME | PHONE NUMBER | NEW ATTRIBUTE ADDED | |||||
| 00229978T | JOE | 33, ROWS RD, NEWCASTLE | 00229977T | ALEX | 43463380 | |||||||
| 00229979T | JAMES | 51, SILK AVE, ADLEIDE | 00229978T | JOE | 43255112 | |||||||
| 00229980T | RINA | 122, QUEENS WLK, AUBURN | 00229979T | JAMES | 45432220 | |||||||
| 00229981T | MOHAN | 132, WESTON STREET, HARRIS | 00229980T | RINA | 45511446 | |||||||
| 00229982T | MARIA | 89, GREAT WEST HIGHWAY | 00229981T | MOHAN | 42344551 | |||||||
| 00229983T | SUE | 119, FIRST ST, KINGSWOOD | 00229982T | MARIA | 456342211 | |||||||
| 00229984T | XIO | 221, VALENTINES RD, PARRAMATTA | 00229983T | SUE | 489765547 | |||||||
| 00229984T | XIO | 456789911 |
Version 1.4
| STUDENT | STUDENT ID | FNAME | LNAME | D.O.B | COURSE | COURSE ID | COURSE NAME | LECTURER | LECTURER ID | FNAME |
| 00229977T | ALEX | SMITH | 12/1/95 | MGT4068 | PROJECT MANAGEMENT | TUA7711 | JAMIE | |||
| 00229978T | JOE | BERNER | 29/04/1989 | MGT4069 | BUSINESS COMMUNIACTION | TUA7712 | KEVIN | |||
| 00229979T | JAMES | ANDERSON | 15/09/1991 | MGT4070 | BUSINESS ENVIRONMENT | TUA7713 | HEINZ | |||
| 00229980T | RINA | SHARMA | 22/02/1986 | MGT4071 | SYSTEM ANALYSIS | TUA7714 | JONNA | |||
| 00229981T | MOHAN | KUMAR | 13/05/1994 | MGT4072 | PROGRAMMING | TUA7715 | RAKESH | |||
| 00229982T | MARIA | BELLE | 10/08/1889 | MGT4073 | STATISTICS AND MATHS | TUA7716 | ROWAN | |||
| 00229983T | SUE | XIANG | 30/10/1990 | MGT4074 | STRATEGIC MANAGEMENT | TUA7717 | MO | |||
| 00229984T | XIO | YANG | 19/04/1985 | MGT4075 | DATA BASE MODELING | TUA7718 | LEENA | |||
| ROWS HAS BEEN DELETED | MGT4076 | LANGUAGE AND LITERACY | TUA7719 | MARINA | ||||||
| ROWS HAS BEEN DELETED | MGT4077 | COMPUTER SCIENCE | TUA7720 | SHAH | ||||||
| 00229985T | PRIYAH | REDDY | 6/1/84 | |||||||
| 00229986T | XIANG | XUEING | 7/19/89 | |||||||
| 00229987T | KIRTI | RAI | 2/11/87 | |||||||
| 00229988T | RAMAN | KAUR | 4/21/88 | |||||||
| 00229989T | ZOEY | SYAED | 10/13/90 | |||||||
| 00229990T | RAHUL | SATHI | 11/25/93 | ROWS ADDED | ||||||
| 00229991T | MANOJ | KUMAR | 5/10/1889 | ROWS ADDED | ||||||
| 00229992T | KIM | CHEA | 4/16/91 | ROWS ADDED | ||||||
| 00229993T | MOHAMMAD | KHAN | 6/22/90 | ROWS ADDED | ||||||
| 00229994T | SANA | RAO | 11/6/86 | ROWS ADDED | ||||||
| STUDENT | STUDENT ID | |||||||||
| 00229977T | STUDENT | STUDENT ID | FNAME | |||||||
| 00229978T | 00229977T | ALEX | ||||||||
| 00229979T | 00229978T | JOE | ||||||||
| 00229980T | 00229979T | JAMES | ||||||||
| 00229981T | 00229980T | RINA | ||||||||
| 00229982T | 00229981T | MOHAN | ||||||||
| 00229983T | 00229982T | MARIA | ||||||||
| 00229984T | 00229983T | SUE | ||||||||
| 00229984T | XIO |