DBMS - GTU Paper Solution
DBMS - GTU Paper Solution
Que.
No. PAPER SOLUTION/ ANSWER KEY/ ASSESSMENT CHART MARKS
Q-2 (B)
Answer
Q-4 C
Page:1 of 4
Q-7-C
Page:2 of 4
Q-8
Page:3 of 4
Page:4 of 4
Winter - 19
Q.5 (C) Consider following schema and write SQL for given statements.
1. Display the name of students with RollNo whose name ends with ‘sh’.
Sol: Select Name, RollNo from student where Name Like ‘%Sh’;
2. Display department wise total students whose total students are greater than 500.
Sol: Select Deptcode, Count(Rollno) from Student “Total student” Group by DeptCode>500;
Sol: Select S.RollNo, S.Name ,R.SPI from Student S, Result R where S.RollNo =R.RollNo;
Sol: Alter Table Student Add Constraint Constraint_Name Primary Key (RollNo);
OR
Q.5 (C) Consider the tables given below. Write the SQL queries for the questions given below:
T2 (Empno, Deptno.)
(1) Display all the details of the employee whose salary is lesser than 10000.
(2) Display the Deptno in which Employees with name starting with letter ‘S’ is working.
(5) Find the total salary of all the employees department wise.
D.Deptno ;