Viewing 8 posts - 16 through 23 (of 23 total)
Clarify, If you want the minimum Budgeted values from all the budgeted figures given a site_ref?
May 23, 2006 at 2:26 am
As suggested by [KH], use dynamic query.
Decalre @strSQL varchar(100)
set @strSQL = 'select @pendT = count(*) from ' + Object_Name(@Object)
sp_executesql @strSQL
Check this out.
May 22, 2006 at 10:07 am
Hope this solve your purpose,
insert into dim_time
(
Select outdate
from
(select exam_datetime outdate from futureexams
union
Select exam_date outdate from userexams ) A
where A.outdate not in (Select DimTime.TheDateFiled dim_time)
)
May 22, 2006 at 6:53 am
Hope this works
SELECT site_ref, budgeted_net_rent, budgeted_occupancy
FROM src_tbl_rental
WHERE (convert(datetime,src_date,106) >= @dt_src_date) AND (convert(datetime,src_date,103) < DATEADD(month, 1, @dt_src_date) - 1)
May 22, 2006 at 6:40 am
Thanks Addict,
What if the Join condition has two clauses.
e.g
SELECT * FROM A INNER JOIN B ON A.a1 = B.a1 and A.a2 = B.a2
Now what will be order of evaluation...
May 22, 2006 at 4:42 am
HI,
The output parameters returns value to the calling function or procedure. So you need a variable in the calling function or procedure to catch the returned value.
As when you are...
March 23, 2006 at 9:33 pm
Viewing 8 posts - 16 through 23 (of 23 total)