Professional Documents
Culture Documents
DBMS Termwork
DBMS Termwork
Experiment-2. Delete students from table where their ages are between 19
and 20 years.
Experiment-3. Apply DROP and TRUNCATE command on table student and
show the results.
Experiment-4. Update the student name as Vishal where age is greater than
20 years.
Experiment-5. Select those students where their name ending with alphabet
‘a’.
Experiment-6. Print the name of those students where string ‘na’ appears in
their name.
Experiment-7. Apply following Constraints on the above tables.
c> Roll no Should be primary key in student table and Branch_id should
be primary key in table branch.
1.IN
2.ANY
3.ALL
Experiment-14.Apply Aggregate functions as given below.
a> Find the sum of column age in table student.
b> Find the Maximum age in table student.
c> Find the Minimum age in table student.
d> Find the Average age in table student.
e>Count number of students where age is between 18 and 20.
Experiment 15. Apply group by statement on attribute Branch_id in table
student and apply a condition(with having clause) that age>18.
Experiment 16. Create a VIEW from table student and select only Roll_no and
name attributes with condition age>=19.
Experiment-17.
Table1-
Table2-
a) UNION (On attribute Country)
select Country from Table1 union select Country from Table2;