Add a customer: Given all necessary information add a customer to the DB can you use an exception too Feature 17: Add a customer. Input: Create a procedure with Cust_ID, Cust_name, Cust_email, Cust_street_address, Cust_city, Cust_state, Cust_Zip, Cust_Credit_Card and a cursor to store the select statement output into the cursor. Output: Creates a new row in the Customer table and displays the values with the cursor. Example of calling the feature: Exec add_customer(23, ‘James Miller’, ‘jamesmiller@gmail.com’, ‘221 Main Street’, ‘Ocean City’, ‘MD’, 28392, ‘2234 1276 2773 1728’);

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

. Add a customer: Given all necessary information add a customer to the DB can you use an exception too

Feature 17: Add a customer.

Input: Create a procedure with Cust_ID, Cust_name, Cust_email, Cust_street_address,

Cust_city, Cust_state, Cust_Zip, Cust_Credit_Card and a cursor to store the select

statement output into the cursor.

Output: Creates a new row in the Customer table and displays the values with the cursor.

Example of calling the feature:

Exec add_customer(23, ‘James Miller’, ‘jamesmiller@gmail.com’, ‘221 Main Street’,

‘Ocean City’, ‘MD’, 28392, ‘2234 1276 2773 1728’);

420.sql (EOL) 154203.Sql (SOL 1S420
SOL
the Page (SOL
Columns Data Model | Constraints | Grants | Statistics | Triggers | Flashback | Dependencies Details | Partitions | Indexes | SQL
X Sort.. | Filter:
CUST_ID CUST_NAME CUST_EMAIL
1
2
3
4
5
EXE
CUST_STREET_ADDRESS CUST_CITY
112 Snow Avenue
21 Lisa Williams lisawilliams@gmail.com
22 Peter Smith petersmith@gmail.com 14 2nd Street
23 James Miller jamesmiller@gmail.com
24 Hope Davis hopedavis@gmail.com
25 Daisy Brown daisybrown@gmail.com
221 Main Street
61 Valley Rd
33 5th Street
CUST_STATE
TOMERS
Buffalo
Norfolk
Ocean City
Washington, D.C. Washington, D.C.
Aspen
NY
VA
MD
CO
CUST_ZIP CUST_CREDIT_CARD_NUM
10007
23317
28392
43898
64277
2272192735432946
2738475898893665
2234127627731728
2213195526557272
1324112327864665
Transcribed Image Text:420.sql (EOL) 154203.Sql (SOL 1S420 SOL the Page (SOL Columns Data Model | Constraints | Grants | Statistics | Triggers | Flashback | Dependencies Details | Partitions | Indexes | SQL X Sort.. | Filter: CUST_ID CUST_NAME CUST_EMAIL 1 2 3 4 5 EXE CUST_STREET_ADDRESS CUST_CITY 112 Snow Avenue 21 Lisa Williams lisawilliams@gmail.com 22 Peter Smith petersmith@gmail.com 14 2nd Street 23 James Miller jamesmiller@gmail.com 24 Hope Davis hopedavis@gmail.com 25 Daisy Brown daisybrown@gmail.com 221 Main Street 61 Valley Rd 33 5th Street CUST_STATE TOMERS Buffalo Norfolk Ocean City Washington, D.C. Washington, D.C. Aspen NY VA MD CO CUST_ZIP CUST_CREDIT_CARD_NUM 10007 23317 28392 43898 64277 2272192735432946 2738475898893665 2234127627731728 2213195526557272 1324112327864665
PR
Worksheet Query Builder
* D / H
Script Output X
1.04900002 seconds
CREATE TABLE Customers (
Cust_ID NUMBER NOT NULL,
Cust_Name VARCHAR2 (50) NOT NULL,
Cust Email VARCHAR2 (50) NOT NULL,
Cust_Street_Address VARCHAR2 (70) NOT NULL,
Cust_City VARCHAR2 (50) NOT NULL,
Cust_State VARCHAR2 (20) NOT NULL,
Cust_Zip NUMBER NOT NULL,
Cust_Credit Card_Num NUMBER NOT NULL,
CONSTRAINT Customers_pk
PRIMARY KEY (Cust_ID)
);
IS420
Transcribed Image Text:PR Worksheet Query Builder * D / H Script Output X 1.04900002 seconds CREATE TABLE Customers ( Cust_ID NUMBER NOT NULL, Cust_Name VARCHAR2 (50) NOT NULL, Cust Email VARCHAR2 (50) NOT NULL, Cust_Street_Address VARCHAR2 (70) NOT NULL, Cust_City VARCHAR2 (50) NOT NULL, Cust_State VARCHAR2 (20) NOT NULL, Cust_Zip NUMBER NOT NULL, Cust_Credit Card_Num NUMBER NOT NULL, CONSTRAINT Customers_pk PRIMARY KEY (Cust_ID) ); IS420
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

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