Write a query to display the checkout number, book number, patron ID, checkout date, and due date
Question:
Write a query to display the checkout number, book number, patron ID, checkout date, and due date for every checkout that has ever occurred in the system. Sort the results by checkout date in descending order and then by checkout number in ascending order (Figure P7.63).
Transcribed Image Text:
Figure P7.63 Checkouts by Date CHECK_NUM BOOK_NUM PAT_ID CHECK_OUT_DATE CHECK_DUE_DATE 5252 1229 5238 1229 5242 1228 5236 1183 5244 1210 5235 1209 5246 1172 5254 1223 5243 1223 5254 1224 91067 91068 91066 91064 91065 91060 91061 91062 91063 91056 5/24/2021 5/24/2021 5/19/2021 5/17/2021 5/17/2021 5/15/2021 5/15/2021 5/15/2021 5/15/2021 5/10/2021 5/31/2021 5/31/2021 5/26/2021 5/31/2021 5/24/2021 5/22/2021 5/22/2021 5/22/2021 5/22/2021 5/17/2021
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (3 reviews)
SELECT checknum booknum patid checkoutdate checkduedate FROM checkouts ORDER ...View the full answer
Answered By
PALASH JHANWAR
I am a Chartered Accountant with AIR 45 in CA - IPCC. I am a Merit Holder ( B.Com ). The following is my educational details.
PLEASE ACCESS MY RESUME FROM THE FOLLOWING LINK: https://drive.google.com/file/d/1hYR1uch-ff6MRC_cDB07K6VqY9kQ3SFL/view?usp=sharing
3.80+
3+ 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, 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...
-
ConAir (CA) commercial airlines company requires you experience in database design and have approached you to assist in the design of their new airline database system. They urgently need to have...
-
Write a query to display the checkout number, book number, patron ID, checkout date, and due date for all checkouts that have not yet been returned. Sort the results by book number (Figure P7.76)....
-
Mark Hurd has just assumed the top job at H-P. He has asked you as a staff VP to draw up a course of action to get the ailing PC division up to competitive parity with Dell. If you need to make some...
-
What is the dollar amount of the firms current bad debt losses? What losses would be expected under the new policy? Rich Jackson, a recent finance graduate, is planning to go into the wholesale...
-
Valley Produce received $50,000 in vendor financing at 7.8% compounded semiannually for the purchase of harvesting machinery. The contract requires annual payments of $10,000 (except for a smaller...
-
C8.8. In February 1999, Boots, the leading retail chemist in the United Kingdom, announced plansto reform its employee optioncompensation scheme. In the future, it said,the firm willpurchase...
-
The following information was taken from the accounts of Healthy Eats, a delicatessen, at December 31, 2013. The accounts are listed in alphabetical order, and each has a normal balance. Accounts...
-
28 Mo Corp issued $1,000,000 of 6%, 5 year bonds on 10/1/18 at 96. 29 The bonds are dated 3/1/18. The bonds pay interest semiannually on 3/1 and 9/1. 30 Bo uses straight line amortization. Round all...
-
Write a query to display the book title, year, and subject for every book. Sort the results by book subject in ascending order, year in descending order, and then title in ascending order (Figure...
-
Write a query to display the different subjects on which FACT has books. Include each subject only once and sort the results by subject (Figure P7.61). Figure P7.61 Unique Book Subjects BOOK SUBJECT...
-
This exercise demonstrates the complexity of leadership by identifying the various characteristics, traits, and behaviors that are associated with good leadership. List as many of the...
-
A company determines that monthly sales S(t), in thousands of dollars, after t months of marketing a product is given by S(t) = 23-551 + 230t+ 160. a) Find S'(1), S'(2), and S'(4). b) Find S''(1),...
-
Dan is a 16 year-old who decided to skip his adolescent development class. If Dan was 19 years-old, this would be his choice, but because of his age, he has broken the law. What type of offence did...
-
You need to remove a bolt from a metal door. The maximum torque the bolt can withstand before starting to rotate is 7 = 70 N-m. You apply a wrench of m = 0.5 kg and 1 = 0.3 m long. You push down on...
-
Lesson 10.1: Emotional Intelligence Emotional Intelligence is a type of social intelligence that affords the individual the ability to monitor his own and others' emotions, to discriminate among...
-
Harriet??s annuity has a total cash value of $2000, and she has paid a total of $1,500 into it. Under a Section 1035 exchange, Harriet rolls the entire value of the annuity into a different annuity....
-
The accompanying table describes three changes in the manufacture of a wafer: increase of the wafer diameter, reduction of the chip size, and increase of the process complexity. Complete the table by...
-
Discuss the concept of the looking-glass self. how do you think others perceive you? do you think most people perceive you correctly?
-
Create the table that would result from stu_code,dept_code (student professor).
-
Write the relational algebra formula to apply a UNION relational operator to the tables shown in Figure Q3.13. Figure Q3.13: Database name: Ch03_VendingCo Table name: MACHINE MACHINE_PRODUCT...
-
Create the table that results from applying a UNION relational operator to the tables shown in Fig Q3.13 Figure Q3.13: Database name: Ch03_VendingCo Table name: MACHINE MACHINE_PRODUCT MACHINE_PRICE...
-
assume that we have only two following risk assets (stock 1&2) in the market. stock 1 - E(r) = 20%, std 20% stock 2- E(r) = 10%, std 20% the correlation coefficient between stock 1 and 2 is 0. and...
-
Flexible manufacturing places new demands on the management accounting information system and how performance is evaluated. In response, a company should a. institute practices that reduce switching...
-
Revenue and expense items and components of other comprehensive income can be reported in the statement of shareholders' equity using: U.S. GAAP. IFRS. Both U.S. GAAP and IFRS. Neither U.S. GAAP nor...
Study smarter with the SolutionInn App