Can any one explain me exactly what is the difference between query & procedure? when we get the same result of any question by proceeding query then why we are suggest to use procedure? and where we can give up query for procedure? explain with proper example plz