DBM Chapter1
DBM Chapter1
Presented By :
Mrs. Samidha Chavan
Lecturer -Department of Information Tech.
Vidyalankar Polytechnic, Wadala (Mumbai)
Unit 1 : Creating Relational Database
• MariaDB
• Db2
• SQLite
• Oracle Database XE
• Sequel Pro
• PostgreSQL
• SQL Server Express
• MySQL
Different Relational Algebra Operators
➢ For Example :
Percentage NUMBER(5,2) ;
It can store max value 999.99
Structured Query Language
Components of SQL:
Data Definition Language
Data Definition Language:
• DDL commands modify the actual structure of a database,
rather than the database’s contents.
Syntax :
Syntax : Example:
EMPLOYEE
NAME(VARCHAR2(100)) EMAIL(VARCHAR2(50)) AGE(NUMBER(3))
Data Definition Language
To add a new column in the table
Syntax : Example:
EMPLOYEE
NAME(VARCHAR2(100)) EMAIL(VARCHAR2(50)) AGE(NUMBER(3)) CITY(VARCHAR2(50))
Data Definition Language
To modify column in the table
Syntax : Example:
Syntax :
Example:
Example:
Primary Key
For example :
Unique Key
For example :
For example :
For Student Relation ,
Foreign Key : {Course_id}
Foreign Key Parent Table
Child Table
Table 1 : Student Table 2 : Course
RollNo Name Course_id Course_id Course_Name
For example :
For example :