Question
Consider the following relational database schema Employee(Ssn,Name,Bdate,Address,Gender,Salary,Super_SSn,Dno) Department(Dnumber,Dname,Manager_Ssn) Project(PNumber,Pname,Control_DNum) Works_On(ESsn,Pnumber,Hours_Per_Week) (a) Write an embedded SQL program using C language to list the Employees who are
Consider the following relational database schema Employee(Ssn,Name,Bdate,Address,Gender,Salary,Super_SSn,Dno) Department(Dnumber,Dname,Manager_Ssn) Project(PNumber,Pname,Control_DNum) Works_On(ESsn,Pnumber,Hours_Per_Week) (a) Write an embedded SQL program using C language to list the Employees who are not working on any project. Define appropriate cursors and operations. (b) Write SQL Statement for Creating a view that has project name, controllong department name, number of employees and total hours worked per week on the project for each project
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started