Theoretical Questions Flashcards
What is a database?
A database is a system that stores data and makes it possible for users to work with that data OR an organised collection of structured information or data, stored electronically
What was the first kind of database?
Navigational Database / Integrated Database Systems IDS
What is the query language for navigational databases?
CODASYL (Conference/Committee on Data System Languages)
What is the primary benefit of a navigational data base over reading data sequentially?
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 database using relationships and to help navigating a database OR abstract logical model devoid of any implementation details OR physical models of relational databases
What are the three subcomponents of a relationship in data bases?
Entities, Attributes, 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 an optional one (zero or one) cardinality type in crow’s foot notation?
ol
What is the sign of a mandatory (exactly one) cardinality type in crow’s foot notation?
||
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 relational databases?
Null
What is the query language used for relational databases?
Structured Query Language (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);