Lecture 03 Cse3103 Database Fall 2023
Lecture 03 Cse3103 Database Fall 2023
Lecture 03 Cse3103 Database Fall 2023
3
Instances
4
Instances and Schemas
• Instance – the actual Database Applications content of the database at a
particular point in time.
• Analogous to the value of a variable.
5
Instances and Schemas
Data Independence – Application that ensures the protection of data or
structure is stored.
6
Database Users & DBA Activities
• Application Programmer
• Sophisticated User
• Specialized User
• Naïve User
Database
7
Data Definition Language (DDL)
• Specification notation for defining the database schema
Example: create table instructor (
ID char(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2))
• DDL compiler generates a set of table templates stored in a data dictionary
• Data dictionary contains metadata (i.e., data about data)
• Database schema
• Integrity constraints
• Primary key (ID uniquely identifies instructors)
• Authorization
• Who can access what
8
Data Manipulation Language (DML)
• Language for accessing and manipulating the data organized by the
appropriate data model
• DML also known as query language (Procedural &Declarative)
9
Database Architecture: Centralized Database
10
Database Architecture: Client Server Database
11
Database Architecture: Parallel Database
12
Database Architecture: Distributed Database
13
©NAZMUS SAKIB 14