MISC #2 (VIEWS, INDEXES, CARDINALITY, Operands) Flashcards
1
Q
Views
A
- a virtual table that is based on the result of a statement
- Views are saved queries, and it shows you data from table(s) based on a specific query
- it exists to offer a way out from repeadtedly typing complex queries by storing a specific query and executing that query when you just referenced the view
2
Q
Materialized View
A
Require way more space and must be refreshed frequenctly because the query is computer before hand and stored physically as a table in the database.
3
Q
3 different types of Cardinality
A
- One to many
- many to one
- many to many
4
Q
r
One to many
A
a relationship that means one record in onetable can be accoicuated with multiple records in another table
5
Q
many to one
A
a relationship that means multiple records in one table can be associated with a single record in another table
6
Q
many to many
A
a relationship that means multiple records in one table can be associated with multiple records in another table