Hello to all you gurus!
Newbie to the max here! I have a stored procedure that returns a dataset (very wide) and I need to return just a subset of columns of said dataset (after performing some calculations and groupings). Since I cannot modify this SP because it is widely used by several other processes/applications, I was thinking about creating another stored proc, call this existing proc and store the dataset in a table variable and go from there but seeing that it returns almost 100 columns, it is very daunting. :sick:
Is this the right approach or is there another way to accomplish this in a more efficient/best practices way?
As usual, thank you all in advance for any help/direction you can provide.
Kind regards,