DBMS Practical File
DBMS Practical File
DBMS Practical File
1
Problem Statement : Write the query for data definiton language
Command : CREATE
Output :
Command : ALTER
Output :
Command : ALTER
Output :
Command : RENAME
Output :
Practical No. 2
Problem Statement : Write the query for Data Manipulation Language
Command : INSERT
Output :
Command : SELECT
Output :
Command : SELECT
Output :
Command : UPDATE
Output :
Command : DELETE
Output :
Practical No. 3
Problem Statement : Write SQL queries using logical operators
Command : AND
Output :
Command : OR
Output :
Command : NOT
Output :
Command : BETWEEN
Output :
Command : IN
Output :
Practical No. 4
Problem Statement : Write SQL queries using SQL operators
Output :
Output :
Command : LESS THAN EQUAL TO(<=)
Output :
Output :
Practical No. 5
Problem Statement : Write SQL queries using Character, Number, Date,
Group functions
Command : AVERAGE(AVG)
Output :
Command : COUNT
Output :
Command : COUNT
Output :
Command : COUNT
Output :
Command : MAX
Output :
Command : MIN
Output :
Practical No. 6
Problem Statement : Write SQL queries for Relational Algebra
Command : UNION
Output :
Command : UNION
select name from employee union all select name from student;
Output :
Command : INTERSECT
Output :
Command : MINUS
Output :
Practical No. 7
Problem Statement : Write SQL queries for extracting data from more than
one table
Command : RIGHT JOIN
Output :
Output :
Command : LEFT JOIN
Output :
Practical No. 8
Command :
Output :
Command :
select MAX(salary) from employee2 where salary NOT IN(select MAX(salary) from
employee2);
Output :
Practical No. 9
Command :
Output :
Command :
Output :
Practical No. 10
Output :
Command :
Output :
Command
Output :
Command
Output :