
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Create a PL/SQL query to display the customer’s name, employee name, donation, dispatch date and the delivery date. In your query, also display the number of days between the dispatch date and the delivery date in days for customer 11013.

Transcribed Image Text:23; 24; 25
EMPLOYEE TABLE
EMPLOYEE_ID FIRST_NAME
emp101
emp102
emp103
emp104
emp105
DONATOR TABLE
DONATOR_ID
20111
20112
20113
20114
20115
DONATION_ID
7111
DONATION TABLE
7112
7113
7114
7115
7116
23; 24; 25
DELIVERY TABLE
DELIVERY_ID
511
512
513
514
515
516
ret001
ret002
Jeff
8111
8112
Kevin
Adanya
8113
8114
Adebayo
Xolanil
8115
8116
Jeff
Stephen
James
Kelly
Abraham
20111
20112
The Independent Institute of Education (Pty) Ltd 2023
FIRST_NAME
20113
20115
DONATOR_ID
20114
20113
RETURNS TABLE
RETURN_ID RETURN_DATE
25 May 2022
No notes
INVOICE TABLE
INVOICE_NUM CUSTOMER_ID
SURNAME
Davis
Marks
DELIVERY_NOTES
25 May 2022
Andrews
Dryer
Samson
11011
11013
11012
11015
11011
11015
Double packaging requested
Delivery to work address
Signature required
Birthday present wrapping
required
Delivery to work address
Watson
Jones
Joe
Ross
Clark
CONTACT NUMBER
0877277521
0837377522
SURNAME
0817117523
0797215244
0827122255
DONATION
KIC Fridge
Samsung 42inch
LCD
Sharp Microwave
6 Seat Dining
room table
Lazyboy Sofa
JVC Surround
Sound System
REASON
Customer not
satisfied with
product
Product had
broken section
INVOICE_DATE
15 May 2022
15 May 2022
17 May 2022
17 May 2022
17 May 2022
18 May 2022
PRICE
11011
R 599
11013
R 1 299
R 1 599
R 799
R 1 199
DISPATCH_DATE
10 May 2022
12 May 2022
12 May 2022
12 May 2022
18 May 2022
R 179
20 May 2022
CONTACT NUMBER EMAIL
0827172250
0837865670
0878978650
0826575650
0797656430
CUSTOMER_ID
ADDRESS
10 main
road
EMPLOYEE_ID
emp103
emp101
emp101
emp102
emp102
emp103
18 water
road.
21 circle
lane
1 sea road.
12 main
road.
7116
7114
EMAIL
jand@isat.com
7111
7114
7112
7113
7115
7116
km@isat.com
aa@isat.com
aryer@isat.com
xosam@isat.com
jwatson@ymail.com
joness@ymail.com
jj@isat.com
kross@gsat.com
aclark@ymail.com
DONATION_DATE
1 May 2022
3 May 2022
DONATION_ID
3 May 2022
5 May 2022
7 May 2022
9 May 2022
DELIVERY_DATE
15 May 2022
15 May 2022
17 May 2022
15 May 2022
19 May 2022
25 May 2022
DONATION_ID EMPLOYEE_ID
emp101
2023
emp103
Page 4 of 19
DELIVERY_ID
511
512
513
514
515
516
2023

Transcribed Image Text:CUSTOMER TABLE
CUSTOMER_ID FIRST_NAME SURNAME ADDRESS
11011
11012
11013
11014
11015
Jack
Pat
Andre
Kevin
Lucy
Smith
Hendricks 22 Water Rd
Clark
Jones
18 Water Rd
Williams
101 Summer
Lane
55 Mountain
way
5 Main rd
CONTACT NUMBER EMAIL
0877277521
0863257857
0834567891
0612547895
0827238521
jsmith@isat.com
ph@mcom.co.za
aclark@mcom.co.za
kj@isat.co.za
lw@mcal.co.za
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps

Knowledge Booster
Similar questions
- Using SQL determine salary is above 4000 and job_id starts with a letter “S” In addition, when grouping the above selected employees by department, we only show the department which has more than 5 employees or the minimal salary greater than 5000, and order the result by the average salary.arrow_forwardWrite an SQL query using the ALTER TABLE and ADD operator to add anattribute named ORDERDATE with the constraint of Varchar 55arrow_forwardWrite an SQL query using the IN operator to show all customers residingin the following zip codes: 91508, 91510, 33111arrow_forward
- Write an SQL query using the NOT operator that will show all employeeinformation from the Employee table with the exception of EmployeeNumber 7344.arrow_forwardHow can the DATEDIFF function be used to calculate the time difference between two dates in SQL?arrow_forwardPlease help: Using the following sql file, how would you find List all the rows in which the prescription dates occur on or after November 14. How many doctors provide prescriptions with 30 tablets in total? List doctor’s details where speciality is either Dermatology or Neurology. (Use INoperator). List the results by the first name in ascending order and the last name indescending order Find all patients rows whose first names include ‘George’ (Assume case sensitivity). List number of patients that do not have a phone number. Beginfor c in (select table_name from user_tables) loopexecute immediate ('drop table '||c.table_name||' cascade constraints');end loop;End; //* Assignment_1 */ ALTER SESSION SET NLS_DATE_FORMAT = 'MM/DD/YYYY';CREATE TABLE DOCTOR (DOC_ID varchar2(5) PRIMARY KEY,DOC_LNAME varchar2(15),DOC_FNAME varchar2(15),DOC_INITIAL varchar2(1),DOC_SPECIALTY varchar2(15));INSERT INTO DOCTOR…arrow_forward
- If a subquery is used in the FROM clause of a query, how are the subquery’s results referenced in other clauses of the query?arrow_forwardI want to know the syntax for sql alter column set default and drop defaultarrow_forwardWrite SQL CODE List all the Course Code (CRS_CODE) that are taught by a Professor that does not hold "Ph.D." as the highest degree (based on PROF_HIGH_DEGREE in the PROFESSOR table).arrow_forward
- Write an SQL query using a Wildcard operator that will show any ISBNstarting with 995 in the Books table. This query must also show the ISBNand the book title only.arrow_forwardCreate a query to show the Technician Number, Last Name, First Name, Client Number,and Client Name for clients whose technician number is 23 (use Boolean variables).Save your queryarrow_forwardInsert into table customerPayment, columns customerOrderld and total result set returned from query a. Select columns id and total from table customerOrder where column orderStateld is equal to subquery i. (select column id from table orderState where column state is equal to "Payment received") Write Test Case 1 as a SQL join query to do the following a. Select using concatenation of columns firstName and lastName from table www customer as Customer b. Select customerOrderId from table customerPayment as "Customer Order" c. Select description from table product as Product d. Select total from table customerOrder as “Product Total" e. Join tables customerPavment, customerOrder, customer, product f. Order by column lastName from table customer Alter table purchaseOrder add column total as data type decimal size 7,2, not null, default value of 0.0arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

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 Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

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
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY