Can Something like this be done?
I have an UDF that takes a parameter returns a table
This Works
can something like this work
Perhaps with a join???
I have an UDF that takes a parameter returns a table
Code:
Create function dbo.Somefunction (@Somedate DateTime)
RETURNS @SomeCalendar Table(Somedate DateTime,Dateplusx Datetime,Dateplusz Datetime)
AS
Begin
Insert into @SomeCalendar (Somedate )values (@Somedate)
Update @SomeCalendar
Set Dateplusx =@Somedate+x
Set Dateplusy =@Somedate+y
Return
END
This Works
Code:
Select * from dbo.Somefunction(mydate)
can something like this work
Code:
Select *,dbo.Somefunction(mytable.mydatefield)
from from Mytable
Perhaps with a join???