Lecture 0: Introduction to Database Flashcards
What is a Metadata
metadata are data that provides information about other data. They can include relationships, permissions and the structure of the tables
What is a DBMS?
Database Management System. This is a software that allows users to control the database through either:
- Creating
- Modifying
- Maintaining etc..
What is a database application program?
It is a software application that interacts with a DB by using the correct commands . E.g. MySQL workbench, Command Line Interface, any 3rd parties
What is a database server?
it is a dedicated computer system which runs the DBMS and contains the database and underlying data? This may or may not be a distributed system.
DDL?
Data definition language. Specifies data types and structures. Specifies the database schema
DML?
data manipulation language. allows insertion, deletions, retrieval. used to both read and update the database
SQL?
structured query language. it is the combination of ddl and dml. it is a high level programming language with rules on what to say in the language, and ensuring you understand how the computer will interpret what you say
What are the steps on building an entity relationship Model (the conceptual design) ?
- Identify the entity types
- Identify the relationship types:
- name
- direction
- multiplicity - Identify the attributes
- State the Primary Keys
What is a logical DB design?
A logical design, is when the entity relationship model turns into the relation model (a table that defines how data is related). Also includes the foreign keys
What happens to the DB from logical to Physical design?
The logical design (relational model) gets translated into a physical implementation.
The physical implementation allows data to be stored and queried
Physical implementation is created using SQL
Describe what a database schema is.
The overall description of a databases structure.
How many types of schemas are there?
- The DBMS is responsible for mapping between these schemas
How many types of data independence are there?
- Logical and Physical
Logical is the immunity between external and conceptual.
Physical refers to the immunity of the conceptual and internal
what is a data model?
Is a collection of concepts that can be used to describe a set of data
the operations to manipulate the data
and a set of integrity constraints for the data
How many data models are there?
3.
conceptual data model
logical data model
physical data model