Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Urgent need - i want to select a set a variables

Author  Topic 

varunragul
Starting Member

10 Posts

Posted - 2007-12-05 : 01:57:27
The dbo.fn_Date function returns a table i want to select e,date but the syntax is throwing error on f.settledays request anybody to help on this

select f.code , e.Date from (Select * from dbo.fn_Date ('27 oct 2005',
f.Settle_Days,
3,
f.AssetID,
4,
2,
4) e

join dox b on 1=1
JOIN rog f
ON f.Code = b.Code
WHERE b.End_Date = '27 oct 2005 12:00:00'
AND f.Trust = 'TMC'

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-12-05 : 03:08:38
Duplicate of http://sqlteam.com/forums/topic.asp?TOPIC_ID=93708

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -