BOOK_NUM Times Checked Out BOOK_NUM TIMES Checked Out 5236 12 5236 12 No under score line 5235 5235 9 5240 7 5240 5238 6 5238 6

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Help on sorting and get rid of unerline from imes_Checked_Out to Times Checked Out in SQL, 

Write a query to display the book number and the number of times each book has been checked out. Do not include books that have never been checked out. Sort the results by the number of times checked out in descending order and then by book number in descending order (Figure P7.95).

SELECT  BOOK_NUM, COUNT(check_out_DATE) AS Times_Checked_Out
FROM  CHECKOUT GROUP BY BOOK_NUM
ORDER BY Times_Checked_Out DESC;
BOOK_NUM
Times Checked Out
ВОOK NUM
TIMES Checked Out.
5236
12
5236
12
No under score line
5235
5235
5240
7
5240
7
5238
6
5238
6
5237
5
5237
5254
4
5249
4
5252
4
5252
4
5249
4
5254
4
Wrong
5246
4
5242
4
5244
4
5244
4
5242
4
5246
4
5248
3
5248
3
5243
2
5243
2
Transcribed Image Text:BOOK_NUM Times Checked Out ВОOK NUM TIMES Checked Out. 5236 12 5236 12 No under score line 5235 5235 5240 7 5240 7 5238 6 5238 6 5237 5 5237 5254 4 5249 4 5252 4 5252 4 5249 4 5254 4 Wrong 5246 4 5242 4 5244 4 5244 4 5242 4 5246 4 5248 3 5248 3 5243 2 5243 2
Expert Solution
Step 1
SELECT  BOOK_NUM, COUNT(check_out_DATE) AS "Times Checked Out "
FROM  CHECKOUT GROUP BY BOOK_NUM
ORDER BY 2 DESC;
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY