Data analysis for database design is a subject of great practical value to systems analysts and designers. This classic text has been updated to include chapters on distributed database systems, query optimisation and object-orientation. The SQL content now includes features of SQL92 and SQL 99.
With new databases coming online all the time and the general expansion of the information age, it is increasingly important to ensure that the analysis and model of a database design is accurate and robust. This is an ideal book for helping you to ensure that your database is well designed and therefore user friendly.
- Increased material on SQL including the latest developments
- Practical approach to explaining techniques and concepts
- Contains many questions and answer pointers
Inhaltsverzeichnis
1;Copyright Page;3 2;Contents;5 3;Preface to the Third Edition;9 3.1;Readership;9 3.2;Scope;9 3.3;Structure and content;9 3.4;Terminology;10 3.5;Questions and assignments;11 3.6;Comparison with the second edition;11 3.7;Acknowledgements;12 4;Part A: Introduction;13 4.1;Database;15 4.2;Torg Ltd;15 4.3;Analysis;21 4.4;Answer pointers;22 5;Part 1: Databases and database management systems;25 5.1;Chapter 1. Database systems;27 5.1.1;The database approach;27 5.1.2;Program/data independence;28 5.1.3;Other database management system facilities;30 5.1.4;What constitutes a database management system?;33 5.1.5;Disadvantages;33 5.1.6;Database vs database management system;33 5.1.7;Scope of a database;33 5.1.8;Assignment;35 5.1.9;Answer pointers;35 5.2;Chapter 2. Database management system architecture;36 5.2.1;Introduction;36 5.2.2;A three-level architecture;36 5.2.3;The conceptual schema;36 5.2.4;The external schema;37 5.2.5;The internal schema;37 5.2.6;Mapping;37 5.2.7;DBMS components;37 5.2.8;Advantages of three-level architecture;40 5.2.9;Data administration;40 5.2.10;Model vs schema;40 5.2.11;Terminology;42 5.2.12;Assignments;43 5.2.13;Answer pointers;43 6;Part 2: Relational modeelling;45 6.1;Chapter 3. Tables;47 6.1.1;Introduction;47 6.1.2;Tables;47 6.1.3;Nulls;48 6.1.4;Normalisation;48 6.1.5;Answer pointers;49 6.2;Chapter 4. Redundant vs duplicated data;51 6.2.1;Introduction;51 6.2.2;Redundant vs duplicated data;51 6.2.3;Elimination of redundancy;53 6.2.4;Deceptive appearances;54 6.2.5;Enterprise rules;55 6.2.6;Answer pointers;56 6.3;Chapter 5. Repeating groups;59 6.3.1;Introduction;59 6.3.2;Repeating groups;59 6.3.3;Elimination of repeating groups (normalisation);61 6.3.4;Assignments;63 6.3.5;Separate attribute types;63 6.3.6;Answer pointers;65 6.4;Chapter 6. Determinants and identifiers;69 6.4.1;Introduction;69 6.4.2;Determinants;69 6.4.3;Superfluous attributes;70 6.4.4;Determinancy;71 6.4.5;Composite determinants;72 6.4.6;Transitive determinants;73 6.4.7;Terminology;
75 6.4.8;Assignment;76 6.4.9;Identifiers;77 6.4.10;Determinancy diagrams and redundancy;79 6.4.11;Transformation into well-normalised tables;80 6.4.12;Notation;81 6.4.13;Assignment;83 6.4.14;Answer pointers;83 6.5;Chapter 7. Fully-normalised tables;92 6.5.1;Introduction;92 6.5.2;Hidden transitive dependency;92 6.5.3;Multi-valued determinancy;93 6.5.4;Advantages of full normalisation;95 6.5.5;Normal forms;97 6.5.6;Assignments;97 6.5.7;Answer pointers;97 7;Part 3: Entity-relationship modelling;101 7.1;Chapter 8. Introduction to entity-relationship modelling;103 7.1.1;Bottom-up data modelling;103 7.1.2;Entity-relationship modelling;104 7.1.3;Type vs occurrence;105 7.1.4;Identifiers;105 7.1.5;Entity-relationship diagrams;106 7.1.6;Answer pointers;108 7.2;Chapter 9. Properties of relationships;110 7.2.1;The degree of a relationship;110 7.2.2;Determinancy constraints;112 7.2.3;Participation conditions;114 7.2.4;Multiplicity;116 7.2.5;Choice of notation;118 7.2.6;Answer pointers;118 7.3;Chapter 10. Decomposition of many:many relationships;121 7.3.1;Decomposition;121 7.3.2;Answer pointers;125 7.4;Chapter 11. Connection traps;128 7.4.1;Introduction;128 7.4.2;Misinterpretation;128 7.4.3;Fan traps;129 7.4.4;Chasm traps;131 7.4.5;Further fan traps;132 7.4.6;Decomposition of complex relationships;135 7.4.7;Summary;135 7.4.8;Answer pointers;138 7.5;Chapter 12. Skeleton entity-relationship models;141 7.5.1;Introduction;141 7.5.2;Representation of 1:1 relationships;141 7.5.3;Representation of 1:many relationships;145 7.5.4;Representation of many:many relationships;147 7.5.5;Preposted identifiers;148 7.5.6;Skeleton tables;149 7.5.7;Relationship identifiers;149 7.5.8;Relationship vs row identifiers;150 7.5.9;Review;150 7.5.10;Recursive relationships;151 7.5.11;Answer pointers;155 7.6;Chapter 13. Attribute assignment;159 7.6.1;Assignment rules;159 7.6.2;1:1 relationships;160 7.6.3;1:many relationships;162 7.6.4;Many:many relationships;163 7.6.5;Extending the skeleton model;164 7.6.6;S
uperfluous entity tables;165 7.6.7;Entity subtypes;166 7.6.8;Answer pointers;168 7.7;Chapter 14. First-level design;171 7.7.1;Introduction;171 7.7.2;First-level design procedure;171 7.7.3;First-level design example;173 7.7.4;Answer pointers;180 7.8;Chapter 15. Second-level design;183 7.8.1;Introduction;183 7.8.2;Flexing by table elimination;184 7.8.3;Flexing by splitting;188 7.8.4;Derivable attributes;188 7.8.5;Assignment;189 7.8.6;Second-level design example;189 7.8.7;Answer pointers;193 8;Part 4: Further topics;199 8.1;Chapter 16. Distributed database systems;201 8.1.1;Introduction;201 8.1.2;An extended library scenario;201 8.1.3;A distributed database design;204 8.1.4;Distributed data independence;205 8.1.5;Avoiding complications;206 8.1.6;Answer pointers;206 8.2;Chapter 17. Relational algebra;209 8.2.1;Table-at-a-time processing;209 8.2.2;Relational algebra operations;209 8.2.3;Sample queries;213 8.2.4;Further join operations;214 8.2.5;Union, intersection and difference;215 8.2.6;Division;217 8.2.7;Extended Cartesian product;218 8.2.8;Update;219 8.2.9;Nested operations;219 8.2.10;Assignment;220 8.2.11;Answer pointers;220 8.3;Chapter 18. Query optimisation;225 8.3.1;Query processing;225 8.3.2;Query plans;226 8.3.3;Storage structures;227 8.3.4;Optimisation;232 8.3.5;Distributed database optimisation;237 8.3.6;Summary;237 8.3.7;Answer pointers;238 8.4;Chapter 19. The SQL language;240 8.4.1;Introduction;240 8.4.2;Table creation;240 8.4.3;Retrieving data;246 8.4.4;Updating data;259 8.4.5;Views;261 8.4.6;Drop;264 8.4.7;Alter;264 8.4.8;Granting and revoking privileges;265 8.4.9;Embedded SQL;266 8.4.10;Some SQL issues;267 8.4.11;Answer pointers;267 8.5;Chapter 20. Object-orientation;273 8.5.1;Introduction;273 8.5.2;Overview of object-orientation;273 8.5.3;Class diagrams;274 8.5.4;Object-oriented developments;277 8.5.5;Further data types;277 8.5.6;SQL99 inheritance;280 8.5.7;User defined types;282 8.5.8;Answer pointers;284 9;Appendix A: The Codasyl (network) model;287 9.
1;Acknowledgements to Codasyl;287 9.2;A1: Basics of the Codasyl (network) model;288 9.3;A2: Further Codasyl schema facilities;308 9.4;A3: Further Codasyl DML facilities;319 10;Bibliography;329 11;Index;331