Write a query to display the patron ID, book number, and days kept for each checkout. Days
Question:
Write a query to display the patron ID, book number, and days kept for each checkout. “Days Kept” is the difference from the date on which the book is returned to the date it was checked out. Sort the results by days kept in descending order, then by patron ID, and then by book number (Figure P7.87).
Transcribed Image Text:
Figure P7.87 Days Kept PATRON BOOK Days Kept 1160 5240 1160 5240 1165 5235 1183 5236 1184 5240 1185 5240 1202 5236 1203 5235 1204 5236 1207 5242 1209 5235 9 9 9 8 8 8 8 8 8 8 8
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (QA)
Here is an SQL query to display the patron ID book number and days kept for e...View the full answer
Answered By
Nazrin Ziad
I am a post graduate in Zoology with specialization in Entomology.I also have a Bachelor degree in Education.I posess more than 10 years of teaching as well as tutoring experience.I have done a project on histopathological analysis on alcohol treated liver of Albino Mice.
I can deal with every field under Biology from basic to advanced level.I can also guide you for your project works related to biological subjects other than tutoring.You can also seek my help for cracking competitive exams with biology as one of the subjects.
3.30+
2+ Reviews
10+ Question Solved
Related Book For
Database Systems Design Implementation And Management
ISBN: 9780357673034
14th Edition
Authors: Carlos Coronel, Steven Morris
Question Posted:
Students also viewed these Computer science questions
-
Write a query to display the patron ID, book number, and days kept for each checkout. Days Kept is the difference from the date on which the book is returned to the date it was checked out. Sort the...
-
Write a query to display the patron ID and the average number of days that patron keeps books during a checkout. Limit the results to only patrons who have at least three checkouts. Sort the results...
-
Write a query to display the patron ID, last name, number of times that patron has ever checked out a book, and the number of different books the patron has ever checked out. For example, if a given...
-
Find and draw y(t) for the system below X(t)-21tl and h(t) as below h(t)
-
Now suppose Websters supplier offers a discount of 1% on orders of 1,000 or more. Should Webster take the discount? Why or why not? Andria Mullins, financial manager of Webster Electronics, has been...
-
A retail catalogue operation employs a bank of six telephone operators who process orders using computer terminals. When a terminal breaks down, it must be disconnected and taken to a nearby...
-
Consider two alternatives, each of which will accomplish the same EPA-mandated pollution control. Using an incremental IRR analysis, determine the preferred alternative assuming MARR is 20...
-
On December 1, 2014, Prosen Distributing Company had the following account balances. During December, the company completed the following summary transactions. Dec. 6 Paid $1,600 for salaries and...
-
A system consisting of a small 1.20-kg object attached to a Ax(cm) light spring oscillates on a smooth, horizontal surface. A 5.00- graph of the position x of the object as a function of time is 4.00...
-
Write a query to display the patron ID, patron full name, and patron type for each patron sorted by patron ID (Figure P7.88). Figure P7.88 Patron and Patron Type PAT_ID Patron Name 1160 robert carter...
-
Write a query to display the total value of all books owned by the library (Figure P7.86). Figure P7.86 Total of All Books Library Value 1499
-
Jobs, Alford, and Norris formed the JAN Partnership by making capital contributions of $150,000, $100,000, and $250,000, respectively on January 7, 2014. They anticipate annual net incomes of...
-
In order to buy a house, Sheila Chopin is going to borrow $150,000 today with a 4.00 percent nominal annual rate of interest. She is going to make monthly payments over 30 years. Assume full...
-
2. Determine the output (if any) of each code segment below in Figure 9 for the given value of n. Write the text " < " If the code does not print anything. Provide the output in Table 5. (3 marks) if...
-
The contractor's Division A sells material to Divisions B and C. This material does not qualify for any of the Federal Acquisition Regulation (FAR) exceptions to certified cost or pricing data. The...
-
Write a Java program that checks the course availability and instructors of programming courses, as shown in Table 1. Other programming courses which are not listed in Table 1 are considered not...
-
The average amount of capital invested in the new product is $900 000 and Brexit's target return on investment for it is 18 per cent. What price must Brexit charge if the company uses cost-plus...
-
In the situation described in BE 15-8, what would be the pretax amounts related to the lease that the lessee would report in its income statement for the year ended December 31?
-
Match each of the key terms with the definition that best fits it. _______________ A record of the sequence of data entries and the date of those entries. Here are the key terms from the chapter. The...
-
What is the SQL command to list the number of product sales (number of rows) and total sales by month and product category with subtotals by month and product category and a grand total for all sales?
-
What is the SQL command to list the number of product sales (number of rows) and total sales by month, product category and product, with subtotals by month and product category and a grand total for...
-
Using the answer to Problem 10 as your base, what command would you need to generate the same output but with subtotals in all columns?
-
"How do chloroplasts orchestrate intracellular signaling pathways to modulate cellular metabolism, encompassing interactions with other organelles and the nucleus?"
-
Calculate the value of a stock with the following expectations for dividend payments: $1.75 in Years 1, 2, and 3, and then annual dividend growth of 1.5% per year indefinitely. Assume a discount rate...
-
You have the following information about your stock portfolio. You own 2 ,000 shares of Stock A which sells for $ 11 with an expected return of 3 %. You own 2,000 shares of Stock B which sells for...
Study smarter with the SolutionInn App