I am confused about a few points:
What is the difference between a stored procedure and a view?
When should I use stored procedures, and whe
Main difference is that when you are querying a view then it's definition is pasted into your query. Procedure could also give results of query, but it is compiled and for so faster. Another option are indexed views..