Unit I Introduction
Unit I Introduction
192-83-7465 Johnson
Alma Palo Alto A-101
019-28-3746 Smith
North Rye A-215
192-83-7465 Johnson
Alma Palo Alto A-201
321-12-3123 Jones
Main Harrison A-217
019-28-3746 Smith
North Rye A-201
A Sample Relational Database
Data Definition Language (DDL)
Specification notation for defining the database schema
E.g.
create table account (
account-number char(10),
balance integer)
DDL compiler generates a set of tables stored in a data
dictionary
Data dictionary contains metadata (i.e., data about
data)
database schema
Data storage and definition language
language in which the storage structure and access methods used
by the database system are specified
Usually an extension of the data definition language
Data Manipulation Language (DML)
Language for accessing and manipulating the
data organized by the appropriate data model
DML also known as query language
Two classes of languages
Procedural – user specifies what data is required
and how to get those data
Nonprocedural – user specifies what data is
required without specifying how to get those data
SQL is the most widely used query language
SQL
SQL: widely used non-procedural language
E.g. find the name of the customer with customer-id 192-83-
7465
select customer.customer-name
from customer
where customer.customer-id = ‘192-83-7465’
E.g. find the balances of all accounts held by the customer with
customer-id 192-83-7465
select account.balance
from depositor, account
where depositor.customer-id = ‘192-83-7465’ and
depositor.account-number =
account.account-number
Application programs generally access databases through
one of
Language extensions to allow embedded SQL
Application program interface (e.g. ODBC/JDBC) which allow SQL
queries to be sent to a database
Database Users
Users are differentiated by the way they expect to
interact with the system
Application programmers – interact with system
through DML calls
Sophisticated users – form requests in a database
query language
Specialized users – write specialized database
applications that do not fit into the traditional data
processing framework
Naïve users – invoke one of the permanent application
programs that have been written previously
E.g. people accessing database over the web, bank tellers,
clerical staff
Database Administrator
Advantages
Modular development is possible
One server failure will not affect the entire data
set
Scalable and more efficient than centralized
Database
NoSQL Database
Are the databases that do not use SQL as their primary
data access language.
Graph database, network database, object database
and document database are common NoSQL Database
Key- Value Storage
It stores every single item as a key holding its value together
Document-oriented Database
Store data as jason like documents,
Graph Database
In graph like structres
Column stores
Stores in large columns together instead of storing in rows
Cloud Database
Database where data is stored in a virtual
environment and executes over the cloud
computing platform .
Provides various cloud computing servers
Amazon Web Services (AWS)
Microsoft Azure
Snowflake