Databases Flashcards
What is a database?
An organized collection of structured information or data, stored electronically
What was the first kind of database?
Navigational Database
What is the query language for navigational databases?
CODASYL (Conference/Committee on Data Systems Languages)
What is the primary benefit of a navigational database over reading data sequentially?
Navigational databases allow to navigate directly from record to record following relations
Who invented relational databases?
Dr. Edgar Codd
What is the entity-relationship model used for?
To model data in databases using relationships and to help navigating a database
What are the three subcomponents of a relationship in ER models?
Entities, Atributes and Relationships
How many cardinality types an entity-relationship can have?
4: Zero or one Exactly One Zero or More One or More
What is the sign of a mandatory one (exactly one) cardinality type in crow’s foot notation?
||
What is the sign of an optional one (zero or one) cardinality type in crow’s foot notation?
o|
What is the sign of a mandatory many (one or more) cardinality type in crow’s foot notation?
|{ or }|
What is the sign of an optional many (zero or more) cardinality type in crow’s foot notation?
o{ or }o
What is the data type for missing data in a relational database?
null
What is the query language used for relational databases?
SQL
What does DDL stand for?
Data Definition Language
What does DML stand for?
Data Manipulation Language
What does DCL stand for?
Data Control Language
How do you create a table in SQL?
CREATE TABLE a (a INTEGER);