BIT202 Database Management System

Database Management SystemTU Board 2078

From the relation given below, answer the following questions. EMPLOYEE (Ssn, Fname, Minit, Name, Bdate, Address, Sex, Salary, Super ssn, Dno) DEPARTMENT (Dname, Dnumber, Mgr ssn, Mgr start date)…

10

From the relation given below, answer the following questions. EMPLOYEE (Ssn, Fname, Minit, Name, Bdate, Address, Sex, Salary, Super_ssn, Dno) DEPARTMENT (Dname, Dnumber, Mgr_ssn, Mgr_start_date) PROJECT (Pname, Pnumber, Plocation, Dnum) DEPENDENT (Essn, Dependent_name, Sex, Bdate, Relationship) DEPT_LOCATIONS (Dnumber, Dlocation) a) Retrieve all the attributes of employees who work for the 'Computer' department department no 5 using SQL b) For each Department, retrieve the department number, the number of employees in department, and their average salary using SQL c) For each project in which more than two employees work, retrieve the project number, name, and the number of employees who work on that project using SQL d) Select the EMPLOYEE tuples whose department is 10, or those whose salary is greater than Rs 50,000 using Relational Algebra. e) Retrieve the names of employees who have no dependents using Relational Algebra

A worked answer is on its wayMeanwhile, read the Database Management System notes for this topic.

Discussion

Loading…

More Database Management System questions

All Database Management System old questions