Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Based on the following Schema, answer the following questions: EMPLOYEE Fname Minit Lname Bdate Address Sex Salary Superssn Dno Ssn AAAA DEPARTMENT Dname Dnumber AAA
Based on the following Schema, answer the following questions: EMPLOYEE Fname Minit Lname Bdate Address Sex Salary Superssn Dno Ssn AAAA DEPARTMENT Dname Dnumber AAA Mgr_ssn Mgr_start_date DEPT_LOCATIONS Dnumber Dlocation PROJECT Pname Pnumber Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name Sex Bdate Relationship Q1: Write a statement that displays each dependent name and his/her age in years. Q2: For each department, find the number of employees who belong to it. Q3: Write a statement that displays the unique values of Dependent_name in Dependent table. Q4: Write a statement that displays each employee name and his dependent name and sort the result according to Dependent_name Descending. Q5: Retrieve the project name and hours worked on that project in which hours are equal to the maximum hours worked on the projects
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