Professional Documents
Culture Documents
Database Management System Lab Course Code: CSE 312: Instructor: Tasnim Tarannum Lecturer CSE Department
Database Management System Lab Course Code: CSE 312: Instructor: Tasnim Tarannum Lecturer CSE Department
SQL is one of the most widely used query language over the databases.
► Allows users to access data in the relational database management systems.
► Allows users to describe the data.
► Allows users to define the data in a database and manipulate that data.
► Allows to embed within other languages using SQL modules, libraries &
pre-compilers.
► Allows users to create and drop databases and tables.
► Allows users to create view, stored procedure, functions in a database.
► Allows users to set permissions on tables, procedures and views.
SQL Architecture
SQL Commands
ALTER
Modifies an existing database object, such as a table.
2
DROP
Deletes an entire table, a view of a table or other objects in the
3
database.
DML - Data Manipulation Language
REVOKE
2 Takes back privileges granted from user.
SQL Tools
► MySQL
► MS Access
► Oracle
► Sybase
► Others
Alter vs update:
previous form for Alter command:
Id Name Contact
number
1 Tasnim 123122
2 Tarannum 124353
3 Afrin 23736626
New column
Id Name Contact
number
1 Tasnim 123122
2 Tarannum 124353
3 Afrin 23736626
New value/
record
Alter vs update: Id Name Contact
number
after using update command:
1 Tabassum 123122
2 Tarannum 124353
3 Afrin 23736626
Drop vs Delete:
previous form for drop command:
3 Afrin 23736626
Drop vs Delete:
previous form for Delete command:
3 Afrin 3.0
Installation process
Any questions?
Thanks