Comp 2: Relational Databases Flashcards
What is a DB model?
Conceptual framework for a DB.
What were the leading DB models in the 1960s?
hierarchic and network
Who was the original creator of the relational model?
E.F Codd
What are primary examples of a Hierarchical, Network, Relational, and NoSQL DBS?
Hierarchical: IMS
Network: IDMS
Relational: MySQL, Oracle, SQL Server
NoSQL models: MongoDB, Redis, Cassandra, Neo4j
Why were relational DBs not used right away?
processing speeds sucked
What are three parts of the relational model?
- Data structure that says how data is organized.
What is the difference between a domain, tuple, and relation?
Domain: Data Type
Tuple: Row
Relational: Table
How do attributes relate to tuples?
Attribute is name for each tuple position. Basically, column headers.
What are 7 relational operations?
SELECT, project, product, JOIN, UNION, INTERSECT, difference
What are relational (or integrity) rules?
logical constraints that make sure data is valid
What are structural rules?
Relational rules that are present in every relational DB.
Give 3 examples of structural rules
Unique Primary Key, Unique Column Names, No duplicate rows.
What are business rules?
relational rules specific to a particular DB.