Termworkdbms
Termworkdbms
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.
b>Roll no Should be primary key in student table and Branch_id should be primary key in table branch.
c>Make Branch_id as a foreign key in table Branch which refers table student.
Experiment-8. Use Alter command to add,delete and modify columns on table Student and show the results.
Experiment-9. Apply INNER JOIN and FULL JOIN on above both tables.
Experiment-11. Apply OUTER JOIN and all its types on above both tables.
Experiment-12. Sort the Table Student in ascending order on the basis of age and for same age branch_id should be in
descending order.
Experiment-13. Apply IN, ANY and ALL operators for above tables and show the results.(Sub queries)
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.
Table-1
Table-2
Q-4 Find the age of those students where their name start with alphabet ‘a’.
Q-9 Find the Roll no and name of those students where their HOD name is either Mr.abc or Dr.xyz.