Q.2.4 Update the contents of the CUSTOMERS table to populate the new CONTACT_NUMBER field that was added to the table in Question 2.3. Use the data as specified below to populate the field: CUSTOMER_ID| 123456 246810 369121 654321 987654 CUSTOMER_NAME |Neo Petlele Derek Moore Pedro Ntaba |Thabo Joe Dominique Woolridge 0739718264 |CONTACT_NUMBER 0833875687 0836914682 0728965412 0847946130

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

please answer  all 2.4, 2.5 ,2.6 and 2.7 

Q.2.4 Update the contents of the CUSTOMERS table to populate the new
CONTACT_NUMBER field that was added to the table in Question 2.3. Use the data
as specified below to populate the field:
CONTACT_NUMBER
0833875687
0836914682
0728965412
CUSTOMER_ID
CUSTOMER_NAME
|Neo Petlele
|Derek Moore
Pedro Ntaba
Thabo Joe
Dominique Woolridge 0739718264
123456
246810
369121
654321
987654
0847946130
Q.2.5 Write a query that will display the CUSTOMER_ID and CUSTOMER_NAME of
CUSTOMERS that have not booked any equipment.
Sample Results:
CUSTOMER_ID
369121
CUSTOMER_NAME
|Pedro Ntaba
Q.2.6 Write a query to generate a report indicating the number of equipment bookings on
record for each customer. Customers for which no equipment are booked should also
be indicated. The report should display the CUSTOMER_ID and CUSTOMER_NAME, as
well as the number of equipment bookings. Arrange the report so that the records
are ordered in descending order based on the number of equipment bookings.
Transcribed Image Text:Q.2.4 Update the contents of the CUSTOMERS table to populate the new CONTACT_NUMBER field that was added to the table in Question 2.3. Use the data as specified below to populate the field: CONTACT_NUMBER 0833875687 0836914682 0728965412 CUSTOMER_ID CUSTOMER_NAME |Neo Petlele |Derek Moore Pedro Ntaba Thabo Joe Dominique Woolridge 0739718264 123456 246810 369121 654321 987654 0847946130 Q.2.5 Write a query that will display the CUSTOMER_ID and CUSTOMER_NAME of CUSTOMERS that have not booked any equipment. Sample Results: CUSTOMER_ID 369121 CUSTOMER_NAME |Pedro Ntaba Q.2.6 Write a query to generate a report indicating the number of equipment bookings on record for each customer. Customers for which no equipment are booked should also be indicated. The report should display the CUSTOMER_ID and CUSTOMER_NAME, as well as the number of equipment bookings. Arrange the report so that the records are ordered in descending order based on the number of equipment bookings.
Q.2.6 Write a query to generate a report indicating the number of equipment bookings on
record for each customer. Customers for which no equipment are booked should also
be indicated. The report should display the CUSTOMER_ID and CUSTOMER_NAME, as
well as the number of equipment bookings. Arrange the report so that the records
are ordered in descending order based on the number of equipment bookings.
Sample Results:
CUSTOMER_ID
CUSTOMER_NAME
NUMBER OF
EQUIPMENT BOOKINGS
246810
Derek Moore
123456
Neo Petlele
2
654321
Thabo Joe
1
987654
Dominique Woolridge
1
369121
Pedro Ntaba
Q.2.7 Write a query that will indicate the longest equipment booking (HOURS) for the Floor
Sander (EQUIPMENT_CODE = 'E0001'). Display the CUSTOMER_ID,
CUSTOMER_NAME, BOOKING_DATE, and HOURS.
Transcribed Image Text:Q.2.6 Write a query to generate a report indicating the number of equipment bookings on record for each customer. Customers for which no equipment are booked should also be indicated. The report should display the CUSTOMER_ID and CUSTOMER_NAME, as well as the number of equipment bookings. Arrange the report so that the records are ordered in descending order based on the number of equipment bookings. Sample Results: CUSTOMER_ID CUSTOMER_NAME NUMBER OF EQUIPMENT BOOKINGS 246810 Derek Moore 123456 Neo Petlele 2 654321 Thabo Joe 1 987654 Dominique Woolridge 1 369121 Pedro Ntaba Q.2.7 Write a query that will indicate the longest equipment booking (HOURS) for the Floor Sander (EQUIPMENT_CODE = 'E0001'). Display the CUSTOMER_ID, CUSTOMER_NAME, BOOKING_DATE, and HOURS.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
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