Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Combining values from 4 Sprocs into 1

Author  Topic 

mj
Starting Member

25 Posts

Posted - 2003-01-21 : 12:04:51
I have 4 sprocs that run just fine,

The sprocs return calculated fields, none of which have the same name.

What I need to do, is add the values from these separate sprocs together to create a series of new fields, that sum up these values.

the new values I need are similar to the below
sproc1.field1 + sproc2.field3 + sproc2.field4

Is there an easy way to accomplish this?

I am thinking of a temp table, I am on the right path here?

Thanks for any help you can provide

mj

nr
SQLTeam MVY

12543 Posts

Posted - 2003-01-21 : 12:41:20
Do they return one value? in which case you can use variables.
If not then a temp table will do. I assume they return key fields to allow you to match rows.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -