I have 15 stored procedures that return data from a common table and then join that table with a specific table to retrieve inventory.
Example:
Commo
Formulate/manipulate your query as a string, then call EXECUTE(@SQLStatement)
EXECUTE(@SQLStatement)