Seraph
Now You've done it.......
- Joined
- Sep 26, 2003
- Messages
- 897
- Gender
- Male
- HSC
- N/A
Okay i am so confused by these two defintiions
A schema is the data definition for a DB . Organised plan of the entire DB showing how and where data is found, description of the data And RELATIONSHIPS .
Like Student
Then a Schematic Diagram is a graphical tool used to define relationships in a DB . E.g Entity Relationship Diagram
okay so this is a Schema
Entity..................Attribute
Students...............StudentID
.....................................FirstName
.....................................LastName
.....................................Address
.....................................Suburb
.....................................PostCode
.....................................PhoneNumber
Teachers.......................TeacherID
.....................................Teacher
.....................................PhoneNumber
.....................................Extension
Classes.........................ClassID
.....................................ClassName
.....................................TeacherID
.....................................Units
Students and Classes..StudentClassID
.....................................ClassID
.....................................StudentID
Right.... But hang on a sec... doesnt an ENTITY relationship Diagram which is a SCHEMATIC DIAGRAM show basically the same thing? (only with links...) ???? i dont get it .. what is the major difference here between the two.......
??
oh btw while im here i might as well ask this question as well.... why exactly do relational databases reduce the undesirable duplication of data more than flat file databases???? is it cause every entity has individual records in a relational database
A schema is the data definition for a DB . Organised plan of the entire DB showing how and where data is found, description of the data And RELATIONSHIPS .
Like Student
Then a Schematic Diagram is a graphical tool used to define relationships in a DB . E.g Entity Relationship Diagram
okay so this is a Schema
Entity..................Attribute
Students...............StudentID
.....................................FirstName
.....................................LastName
.....................................Address
.....................................Suburb
.....................................PostCode
.....................................PhoneNumber
Teachers.......................TeacherID
.....................................Teacher
.....................................PhoneNumber
.....................................Extension
Classes.........................ClassID
.....................................ClassName
.....................................TeacherID
.....................................Units
Students and Classes..StudentClassID
.....................................ClassID
.....................................StudentID
Right.... But hang on a sec... doesnt an ENTITY relationship Diagram which is a SCHEMATIC DIAGRAM show basically the same thing? (only with links...) ???? i dont get it .. what is the major difference here between the two.......
??
oh btw while im here i might as well ask this question as well.... why exactly do relational databases reduce the undesirable duplication of data more than flat file databases???? is it cause every entity has individual records in a relational database