Chapter 6: Problem 35
Consider the Orders database and the Employee table. 1\. Write a query to list the employee who does not report to anyone. 2\. Write a query to list each employee and the number of employees they supervise.
Chapter 6: Problem 35
Consider the Orders database and the Employee table. 1\. Write a query to list the employee who does not report to anyone. 2\. Write a query to list each employee and the number of employees they supervise.
All the tools & learning materials you need for study success - in one app.
Get started for freeConsider the Orders database. 1\. Create a query to list each customer and their orders (order id and order date). Are there any customers who have not placed an order? 2\. Modify the above query to list each customer and the number of orders they have placed (include all customers).
Consider the University database: 1\. For each department list the department code and the largest value for credit hours. 2\. For each department list the department code, department name, and the number of courses.
Consider the Company database and its Employee table. 1\. The empId field is assigned values sequentially starting at 1. What is the last empId value that was used? (What is the empId for the last employee added to the table?) 2\. Write a query to determine the name of the oldest employee. 3\. Write a query to list all of the employee last names. If at least two employees have the same last name then this list will be shorter that a list of employees. 4\. Suppose there is a field hireDate which holds the date when an employee was hired. Write a query to determine the name of the employee who was most recently hired?
Consider the University database. 1\. Create a query to list all courses in a department (for which the user supplies the department code). 2\. Create a query to list all course titles where the user supplies both the department code and the credit hours. Note that two separate criteria, each with their own parameter, must be specified.
Consider the Library database. 1\. Write a query to list books due on a specific date (a parameter). 2\. Write a query to list books written by a specific author (a parameter).
What do you think about this solution?
We value your feedback to improve our textbook solutions.