Computer Science 1032A/B Lecture Notes - Lecture 2: Foreign Key, Relational Database, Cardinality

29 views2 pages
Verified Note

Document Summary

A collection of data used for storing and grouping. Relational database: groups of data are related to each other in a meaningful way. A database: self-describing collection of integrated records. Relationships among records: values in one table relating to rows in other tables. Necessary to uniquely identify the instance of each entity. Databases using tables, primary keys, and foreign keys. A relationship is the association between two or more entities and captures how the entities are related to each other. They have two descriptive facets: cardinality (one or many) and participation level (optional or mandatory). Cardinality indicates the number of instances of the entities that are involved in the relationship. Not the total number of instances in the entity. Relationship to exist- professor is the chair of the department. Relationship is: can be chair of one and only one department, each department can have only one chair. (1:1 relationship = cardinality)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents