Professional Documents
Culture Documents
Nagpal DBMS File
Nagpal DBMS File
Nagpal DBMS File
PRACTICAL FILE
Database Management System
PROGRAM 1
Write a program to create a table .
PROGRAM 3
Create a program to display all the values in the table.
PROGRAM 5
Create a program to modify in the table by adding the new
column in the above table.
Syntax : alter table <table_name> add(column_name1
datatype(size), column_name2 datatype(size),.....
column_name n datatype(size));
PROGRAM 6
Create a program to drop a column in the table.
PROGRAM 7
Create a program to update the values of in the table.
Syntax : update <table_name> set column 1=expression where
<condition>;
PROGRAM 8
Create a program to arrange the values in the descending
order.
Syntax : select <column name > from < table_name > order by
< column name > desc ;
PROGRAM 9
Create a program to arrange the values in the ascending order.
Syntax : select < column name > from < table name > order by
< column name > asc ;
PROGRAM 10
Create a program to calculate the average value.
PROGRAM 11
Create a program to group the result- set by one column.
PROGRAM 13
Creating a New Table :
Inserting The Values IN The Table
PROGRAM 14
Create a view to display
details of employees
working in more than
one project and in one project.
Table 1 -
Table 2 -
PROGRAM 16
Create a program to display the values between the given
range.
PROGRAM 18
Create a program to display the record using OR operator.
Syntax : select from table_name where condition 1 OR
condition2 OR ...condition n;
PROGRAM 19
Create a program to display the record using AND operation.
PROGRAM 20
Create a program to display the multiple values .
Syntax : select from table_name where column_name
IN(value 1,value 2,..., value n);
PROGRAM 21
Create a program using LIKE operator to display a specified
pattern .
PROGRAM 22
Create a program to display the maximum values in the table.
Syntax : select MAX(column_name) from table_name ;
PROGRAM 23
Create a program to display the minimum values in the table .
PROGRAM 24
Create a program to count the total number of rows in the
table.
Syntax : select COUNT(column_name) from table_name ;
PROGRAM 25
Create a program using NATURAL JOIN