Unit 1. Presentation. Getting Started With Databases
Unit 1. Presentation. Getting Started With Databases
Users Task
Application Programmers The Application programmers write programs in various programming
languages to interact with databases.
Database Administrators Database Admin is responsible for managing the entire DBMS system.
He/She is called Database admin or DBA.
End-Users The end users are the people who interact with the database management
system.
Functions of a
Create databases.
Read database data.
DBMS
Modify database data (insert, update, delete).
Create and maintain database structures.
Provide data security. Data breaches are happening
everywhere these days, and hackers are getting more
inventive. It’s more important than ever to ensure that
data is secure but also easily accessible to users. Security
management sets rules that determine specific users who
are allowed to access the database.
Multi-access control. It enables multiple users to access
the database simultaneously without affecting the
integrity of the database.
Perform data backup and recovery data if something was
wrong.
Examples of
popular DBMs
MySQL
Oracle Database
MariaDb
SQLite
Microsoft Access
Microsoft SQL Server
Etc.
3. DatabasesTypes of Databases depending on the model
3. Types of Databases depending on the model
A Database model determines the logical structure of a database and how the data can
be stored, organized and manipulated.
The main four types of Databases depending on the model are:
Hierarchical database.
Network database.
Relational database.
Object-Oriented database.
It is the most widely used DBMS model because it is one of the easiest.
In the Relational Model, items are organized as a set of tables with columns and rows.
Relational database technology provides the most efficient and flexible way to access structured
information.
Relational database
Relational database
In the picture, you can see two different tables (Employee and Department) with different columns
and rows. In this example, we are going to introduce two important concepts:
The column Empno is the primary key of the Employee table and the column Deptno is the
primary key of the Department table.
Relational database
In the picture, you can see two different tables (Employee and Department) with different columns
and rows. In this example, we are going to introduce two important concepts:
A foreign key is a column (or collection of columns) in one table that refers to the primary key
in another table. It means that a foreign key provides a link between data in two tables.
For any column acting as a foreign key, a corresponding value should exist in the linked table.
The column Deptno in the Employee table is a foreign key to the Department table. The set of
possible values of this column is {10,20, 30}.
SQL
SQL (Structured Query Language) is the most
common language for extracting and
organising data that is stored in a relational
database. During this course we are going to
spend a lot of time learning it.