Hi all!
I have a procedure (prepared not by me). It is creating some data and making some calculations, that is not important here. The main case is that this procedure is execute for one week. There is @week parameter and all calculations are based on this week.
It is sth like this
CREATE procedure [dbo].[raport] @week varchar(8)='20140203', @ps varchar(2)='ps' as
And the problem is that this procedure needs to be executed once for few weeks, I mean someone need data for 20150101 & 20150102 & 20150103 & 20150104
Is it possible to execute it 4 times to get 4 sets of data at one time but by executing it ONCE not 4 times separately?