Basics of databases Flashcards
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