Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query Analyzer Question
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01086657
Message ID:
01086658
Views:
7
select campaign_name, id from campaign where id  = 
  (select campaign from show_title where id = 22436)
>I want to run the following 2 queries in the Query Analyzer :
>
>
>select campaign from show_title where id = 22436
>-- Returns 4698
>
>select campaign_name, id from campaign where id  = 4698
>
>
>How can I store the result of the first query as a variable and use that
>variable in the WHERE clause of the second?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform