A stored procedure is a prepared SQL code that one can save, so the code can be reused over and over again.
So if we have an SQL query that we can write over and over again, save it's a stored procedure, and then just call it to execute it.
You can also pass parameters to a stored procedure, so that the stored procedure can act based on the parameter value(s) that is passed.
CREATE PROCEDURE procedure_name
AS
sql_statement
GO;