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!

dynamically insert julian date in a stored procedure 1

Status
Not open for further replies.

Jaminj

Technical User
Feb 19, 2005
54
US
Hello. I have the following formula in a stored procedure:

set @pYTDAnnual = (((@pYTD / 76) *365) / @pStoreEmployees) * 100

Is there a way to insert the julian date minus 1 into this formula? That way it would dynamically give me the 76 w/out me having to modify this every day.
 
Thank you. That worked and saved me some time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top