Chapter 6: Problem 13
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.
Chapter 6: Problem 13
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.
All the tools & learning materials you need for study success - in one app.
Get started for freeConsider 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).
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 Sales database and its Store and Product tables. Construct a query to list the storeID and the productID. When you add Store and Product to the relationships area there is a line joining the two tables. Delete the join line. Run the query. Notice how many rows there are; the number of rows in the result set is the number of stores times the number of products.Exercise \(6.8 .1\)
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 library database. 1\. Create a query that will list every book and the date it was borrowed. Include all books in your result. 2\. Create a query to list every library member and the dates they borrowed books. Include all members 3\. Try creating a query that will list books that have never been borrowed. 4\. Try creating a query to list any members who have not borrowed a book.
What do you think about this solution?
We value your feedback to improve our textbook solutions.