Basics of databases Flashcards
(32 cards)
What is an ANSI/SPARC structure?
A proposed framework for DBMS
- Internal level
- Conceptual level
- External level
Explain the Internal level in the ANSI structure
- Physical storage of data
- Structure of records on disk
Explain the conceptual level in the ANSI structure
Deals with the organisation of the entire database content
(CREATE table vibes)
Explain the external level in the ANSI structure
Provides a view of the database tailored to a user
(CREATE view vibes)
What are the advantages of using a database?
- Data integrity
- Data consistency
- Enforcement of standards
What are the stages of the system development life cycle (SDLC)?
Planning
Analysis
Design
Implementation
Maintenance
What is a conceptual schema?
Users can see what data is stored in the database and the relationship between data
What is a DBMS?
Stores, modifies and retrieves data
What is SQL made up of?
DDL
DML
DCL
What is DDL?
Data definition language (actual STRUCTURE of database)
- CREATE
- ALTER
- DROP
What is DML?
Data manipulation language (manipulating the data- a level stuff)
- SELECT
- INSERT
- DELETE
- UPDATE
What is DCL?
Data control language (access)
- GRANT
- REVOKE
What are the three types of data model?
Hierarchal
Network
Relational
Explain the hierarchal data model
Data organised in a tree structure
- DOM
Explain the network data model
Data organised in a loose network
Explain the relational data model
Data organised into sets
What is a relation?
A table with columns and rows
What is an attribute?
A named column of a relation
What is a domain?
Set of allowable values for one or more attributes
What is a tuple?
A row in a relation
- Attribute name rows don’t count
What is the degree of a relation?
The number of attributes the relation contains
What is the cardinality?
Number of tuples the relation contains
What is a relational database?
A collection of normalised relations with distinct relation names
What is a candidate key?
A single key or group of multiple keys uniquely identifying table rows