Chapter 3 Flashcards
What is the most widely used model in database management?
Relational model
Vendors include Microsoft, Oracle, IBM, etc.
What are legacy systems in older database models?
Examples include IBM’s IMS (Information Management System) and hierarchical model
Recent competitors include object-oriented models like ObjectStore, Versant, Ontos.
What is the object-relational model?
A synthesis emerging from relational and object-oriented models
Supported by Oracle, IBM DB2, MS SQL Server.
What is a relational database?
A set of relations (tables)
Each relation consists of a schema and an instance.
Define the two parts of a relation.
- Schema: specifies name of relation, plus name and type of each column
- Instance: a table, with rows and columns.
What does the cardinality of a relation represent?
The number of rows in a relation.
What does the degree of a relation represent?
The number of fields (columns) in a relation.
True or False: All rows in a relation must be distinct.
True.
What is a major strength of the relational model?
Supports simple, powerful querying of data.
What is SQL?
A popular high-level query language used in relational databases.
List the major revisions of SQL.
- SQL-86
- SQL-89 (minor revision)
- SQL-92 (major revision)
- SQL-1999 (major extensions)
- SQL-2003 (minor revision)
- SQL-2008 (minor revision)
- SQL-2011 (minor revision)
- SQL-2016 (latest release)
What SQL command is used to create a new table?
CREATE TABLE
Fill in the blank: The SQL command to insert a single tuple is _______.
INSERT INTO
What SQL command is used to delete tuples from a table?
DELETE
What SQL command is used to modify existing tuples?
UPDATE