Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking up values
Message
From
09/02/2012 07:44:49
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Looking up values
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01534966
Message ID:
01534966
Views:
82
Hi

IN SQL I am often am looking up values to use in my Stored procedure.

like


SET @member_ref = (SELECT member_ref from MEMBER where MEMBERSHIP_NO = @membership_number1)
SET @individual_ref = (SELECT individual_ref from MEMBER where MEMBERSHIP_NO = @membership_number1)

is there a way to combine that into one select statement and is there any point . (ie is one statement more efficient)

Thanks

Nick
Next
Reply
Map
View

Click here to load this message in the networking platform