stored procedure is a prepared SQL code that can be saved and reused over and over again 1It is a named collection of SQL statements and procedural logic that is compiled, verified, and stored in the server database 2Stored procedures are typically treated like other database objects and controlled through server security mechanisms 2.

Advantages

Practice

Loop Practice

Conditional Statement (IF THEN)