Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable

Status
Not open for further replies.

NoKeS

Programmer
Joined
Sep 27, 2001
Messages
21
Location
PT
I want to put the result of this code into a variable called @Factor: Like

Select @Factor = select Factor
from Moeda, Pedido
Where Moeda.Moeda='USD'
And Pedido.Abertura=Moeda.Data
And Pedido.Fecho is Not Null

How do I do??
 
just like that:

Select @Factor = Factor from Moeda, Pedido Where Moeda.Moeda='USD' And Pedido.Abertura=Moeda.Data And Pedido.Fecho is Not Null

Hope this helps ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top