Database Systems: Design, Implementation, & Management
11th Edition
ISBN: 9781285196145
Author: Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Concept explainers
Expert Solution & Answer
Chapter 8, Problem 22RQ
Explanation of Solution
Stored procedures:
Stored procedure is a collection of procedural and SQL code statements; it is directly called to operate against the data in the
- It has a unique name with the schema and stored in the database.
- A procedure may have input parameter, and output parameter.
- Stored procedures are stored in the database, and it will run whenever it is invoked.
Advantages of stored procedure:
- Stored procedures are designed and optimized to run more quickly.
- It is used to encapsulate and represent business transactions.
- Stored procedure reduces network traffic and also increases performance, because it is stored at the server and there won’t occur any transmission of individual SQL statements over the network...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
How about a detailed explanation of the file system of the database?
How about a comprehensive description of the database's file system?
Which advantages does Quinlan point out in (1995) about stored procedures?
Chapter 8 Solutions
Database Systems: Design, Implementation, & Management
Ch. 8 - What is a cross join? Give an example of its...Ch. 8 - What three join types are included in the outer...Ch. 8 - Using tables named T1 and T2, write a query...Ch. 8 - Prob. 4RQCh. 8 - Prob. 5RQCh. 8 - Prob. 6RQCh. 8 - Prob. 7RQCh. 8 - What does it mean to say that SQL operators are...Ch. 8 - Prob. 9RQCh. 8 - Prob. 10RQ
Ch. 8 - Prob. 11RQCh. 8 - Prob. 12RQCh. 8 - Prob. 13RQCh. 8 - Given the employee information in Question 11,...Ch. 8 - Prob. 15RQCh. 8 - Prob. 16RQCh. 8 - Prob. 17RQCh. 8 - Prob. 18RQCh. 8 - What string function should you use to list the...Ch. 8 - Prob. 20RQCh. 8 - Prob. 21RQCh. 8 - Prob. 22RQCh. 8 - Prob. 23RQCh. 8 - Prob. 24RQCh. 8 - Prob. 1PCh. 8 - Insert the data into the tables you created in...Ch. 8 - Prob. 3PCh. 8 - Prob. 4PCh. 8 - Prob. 5PCh. 8 - Prob. 6PCh. 8 - Prob. 7PCh. 8 - Prob. 8PCh. 8 - Prob. 9PCh. 8 - Modify the CUSTOMER table to include two new...Ch. 8 - Prob. 11PCh. 8 - Prob. 12PCh. 8 - Prob. 13PCh. 8 - Prob. 14PCh. 8 - Prob. 15PCh. 8 - Prob. 16PCh. 8 - Write a trigger to update the customer balance...Ch. 8 - Write a procedure to delete an invoice, giving the...Ch. 8 - Prob. 19PCh. 8 - Prob. 20PCh. 8 - Prob. 21PCh. 8 - Prob. 22PCh. 8 - Prob. 23PCh. 8 - Prob. 24PCh. 8 - Prob. 25PCh. 8 - Prob. 26PCh. 8 - Prob. 27PCh. 8 - Create a trigger named trg_line_total to write the...Ch. 8 - Create a trigger named trg_line_prod that...Ch. 8 - Create a stored procedure named prc_inv_amounts to...Ch. 8 - Create a procedure named prc_cus_balance_update...Ch. 8 - Modify the MODEL table to add the attribute and...Ch. 8 - Prob. 33PCh. 8 - Modify the CHARTER table to add the attributes...Ch. 8 - Write the sequence of commands required to update...Ch. 8 - Write the sequence of commands required to update...Ch. 8 - Write the command required to update the...Ch. 8 - Write the command required to update the...Ch. 8 - Write the command required to update the...Ch. 8 - Prob. 40PCh. 8 - Create a trigger named trg_char_hours that...Ch. 8 - Create a trigger named trg_pic_hours that...Ch. 8 - Create a trigger named trg_cust_balance that...Ch. 8 - Alter the DETAILRENTAL table to include a derived...Ch. 8 - Alter the VIDEO table to include an attribute...Ch. 8 - Update the VID_STATUS attribute of the VIDEO table...Ch. 8 - Alter the PRICE table to include an attribute...Ch. 8 - Prob. 48CCh. 8 - Prob. 51C
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- How are Scripts and Stored Procedures different? How are stored procedures advantageous to a database?arrow_forwardIt takes the vigilant watch of a supervisor in order to keep a database in good shape. The question is, what precisely does this entail? What does a normal day look like for a database administrator?arrow_forwardWhat's the difference between Scripts and Stored Procedures? In what ways are stored procedures beneficial to a database?arrow_forward
- What are the three things that stand out as the most significant when it comes to the management of a database?arrow_forwardWhat is the Big O category of the database execution time? If there's just one more task, I'll do it. In a single operation, how many deletions occur? Even if it were to be used in the context of a single commercial, it would be irrelevant. In direct response to a single Internet search?arrow_forwardA more in-depth description of the database's file system would be much appreciated.arrow_forward
- It takes the vigilant watch of a supervisor in order to keep a database in good shape. So, what precisely does this entail into consideration? What does an ordinary day include for someone who works as a database administrator?arrow_forwardI'm confused about the distinction between scripts and stored procedures. Please explain how stored procedures improve database performance.arrow_forwardWhat about a full description of the database file system?arrow_forward
- If your database lost its referential integrity, what would happen? Which kind of mistakes do you notice most often?arrow_forwardSome key distinctions between scripts and stored procedures are as follows: When taken individually, what are their respective purposes? Why do you think stored procedures in a database are superior to other methods?arrow_forwardSuppose your database's referential integrity were compromised; what would happen then? Which kind of mistakes do you notice most often?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningPrinciples of Information Systems (MindTap Course...Computer ScienceISBN:9781305971776Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning