1. Case Study 1. Write a case study where you are expecting an input from the user (at least one input) Assume you have a database with a few tables. (a) Write any query that would take CORRECT expected input from user, display the CORRECT expected output. (b) Write a sample INCORRECT input from an attacker that might DELETE all DATA inside the table being used. (c) Write the query as a result of INCORRECT input assumed in part (b), display/explain the result of this query Your answer 2. Write a procedure that will update the phone number of ALL employees the table( assume a table that has the required columns. Also write the statement that will initiate this procedure Your answer 3. A supermarket vendor is adding new sale items to his inventory. He wants to check if the product price is more than 10$ the set it price as 10% of the price and only then enter the new item. Write a trigger that will help him achieve this. Example, if the price for Milk is 12$, then save the price for milk as 10.8$. If the price for chips is 6$ then save the price for milk as 6$.
1. Case Study 1. Write a case study where you are expecting an input from the user (at least one input) Assume you have a database with a few tables. (a) Write any query that would take CORRECT expected input from user, display the CORRECT expected output. (b) Write a sample INCORRECT input from an attacker that might DELETE all DATA inside the table being used. (c) Write the query as a result of INCORRECT input assumed in part (b), display/explain the result of this query Your answer 2. Write a procedure that will update the phone number of ALL employees the table( assume a table that has the required columns. Also write the statement that will initiate this procedure Your answer 3. A supermarket vendor is adding new sale items to his inventory. He wants to check if the product price is more than 10$ the set it price as 10% of the price and only then enter the new item. Write a trigger that will help him achieve this. Example, if the price for Milk is 12$, then save the price for milk as 10.8$. If the price for chips is 6$ then save the price for milk as 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...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 5 images
Recommended textbooks for you
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
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