Is it possible to create a single stored procedure that does two things from two different tables? I would like to write one that says
SELECT this value from table1
WHERE othervalue = whatever
THEN
SELECT this value from table2
WHERE table1Value = table2value
Is that possible or do I have to use two seperate stored procs?
Sorry if this has been covered somewhere in this forum. I'm new to sql server and haven't found anything that really addresses this yet.
Thanks for any input....
SELECT this value from table1
WHERE othervalue = whatever
THEN
SELECT this value from table2
WHERE table1Value = table2value
Is that possible or do I have to use two seperate stored procs?
Sorry if this has been covered somewhere in this forum. I'm new to sql server and haven't found anything that really addresses this yet.
Thanks for any input....