VR DBMS EXPT-3
VR DBMS EXPT-3
EXPERIMENT- 3
Aim:- Implement basic queries to Create, Insert, Update, Delete and Select
Statements for two different scenarios (Bank and College)
1. Create :- It is use to create new tables and databases
Syntax:-
CREATE TABLE table_name (
column1_name column1_data_type,
column2_name column2_data_type,
...
[CONSTRAINTS] );
OUTPUT:-
(B) For College Table
OUTPUT:-
OUTPUT:-
OUTPUT:-
Syntax:-
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
Example:- (A) For Bank Table:-
UPDATE Bank
SET Name = 'Rajveer Rawat'
WHERE b_id = 1;
OUTPUT:-
UPDATE College
SET Student_Name = 'Rajveer Rawat'
WHERE Student_id = 1;
OUTPUT:-
4. Delete :- It is used to deleting a record from the table.
Syntax:-
DELETE FROM table_name
WHERE condition;
OUTPUT:-
Syntax:-
OUTPUT:-
(b) SELECT
OUTPUT:-
OUTPUT:-
OUTPUT:-