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 wOOdy-Soft 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
Sep 27, 2001
21
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