0% found this document useful (0 votes)
20 views2 pages

Cec005-Cec41s4 SQL3 Manapao

Uploaded by

Pak Ganern
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Cec005-Cec41s4 SQL3 Manapao

Uploaded by

Pak Ganern
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Diploma in SQL: Beginner to Advanced Levels

Stored Procedures: Benefits and Application

Quiz Result

Quiz Completion Time : 00:01:34

Wrong/Skipped

Right Answer

Your Score : 100%

Passing Score : 50%

Your Strong Areas:

Lesson - Introduction to Stored Procedures, Its Benefits

Lesson - Creating, Executing, Modifying and Dropping

1. Which of the following SQL statements is used to modify an existing stored procedure?

Your Answer : ALTER PROCEDURE

Description : The ALTER PROCEDURE statement in SQL serves the purpose of modifying the definition or
structure of an already existing stored procedure. It enables changes to the stored procedure's logic,
parameters, or other attributes without the need for dropping and recreating the procedure.

Question Reference From : Creating, Executing, Modifying and Dropping

Page 1 of 2
2. What is a stored procedure in SQL?

Your Answer : A collection of SQL statements stored together

Description : A stored procedure is a precompiled collection of SQL statements stored as a named object
in a database. It allows executing multiple SQL statements as a single unit, enhancing reusability and
performance.

Question Reference From : Introduction to Stored Procedures, Its Benefits

3. How does a stored procedure improve performance upon its first use?

Your Answer : By creating a plan for quick execution

Description : Upon first use, a stored procedure generates an execution plan, optimizing its processing for
subsequent executions. This plan enhances performance by efficiently executing the stored logic.

Question Reference From : Introduction to Stored Procedures, Its Benefits

4. The server passes the procedure name and the whole query.

Your Answer : False

Description : Stored procedures are precompiled and stored in the database. When executing a stored
procedure, the sdoesn't pass the whole query; instead, it runs the precompiled procedure based on its
name and parameters.

Question Reference From : Introduction to Stored Procedures, Its Benefits

5. Which benefit is NOT associated with using stored procedures?

Your Answer : Direct Access to Tables

Description : Stored procedures provide benefits like reusability, easy modification, and reduced network
traffic. However, they don't offer direct access to tables; instead, they encapsulate SQL logic for controlled
execution.

Question Reference From : Introduction to Stored Procedures, Its Benefits

Page 2 of 2

You might also like