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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

StoredProc Help 1

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
Hey - new to SP's here... OK - I have this:

select datediff(dd, '10/15/2006 12:15:24 PM', getdate())

but I need to change it so the date will actually be a value from another query... so I need a query to:

select udate from main where id = @recordID

I then need to take udate and put it into something like:

select datediff(dd, udate, getdate())

???

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top