Viewing 15 posts - 1 through 15 (of 26 total)
February 5, 2018 at 11:05 pm
Declare...
January 30, 2018 at 12:56 am
Thanks Sean that worked. What about the below approach?
;with dates(Month_End) as (select cast('2014-01-01' as datetime)-1 as datetime union all select DATEADD(month, 1, Month_End+1)-1
January 30, 2018 at 12:17 am
Also, using...
January 13, 2018 at 3:26 am
Forgot to mention that im running SQL 2008 in production and LEAD function is not supported. Is there another way to achieve the same result?
Thanks
Jag
April 2, 2017 at 7:28 am
April 1, 2017 at 5:03 pm
;WITH
cte_FixData AS (
SELECT
r.R23_SQL_ID,
r.PROP_CODE,
r.TENANT_NUMB,
From_Date = CAST(r.DATE_CHANGED_SQL...
April 1, 2017 at 4:52 pm
in that case wouldn't it be easier to do the vacancy rate calculation in Tableau/Excel as it will be easier to apply the forumla?
May 12, 2016 at 7:48 am
Do we need to use Right outer Join as we are joining properties table with vacant table. Not all active properties are vacant.
Jag
May 12, 2016 at 7:35 am
Hi,
Can you check the vacany rate formula is correctly applied:
DECLARE @vacant TABLE ([Prop Code] INT, [History Ind] INT, [Void Start Date] VARCHAR(23), [Accepted by Allocations] VARCHAR(23), [Let Date] VARCHAR(23), Team...
May 12, 2016 at 2:59 am
Please find below the desired output
May 10, 2016 at 8:27 am
I have joined the calendar table and vacant table but it returns a single row where it should return two rows one for Jan vacant days and Feb Vacant days....
May 10, 2016 at 7:52 am
Ok, i got the below Month End Calendar Table. Whats next please
;with dates(Month_End) as
(
select cast('2013-02-01' as datetime)-1 as datetime
union all
select DATEADD(month, 1, Month_End+1)-1
from dates
where Month_End < GETDATE()
)
select * from...
May 10, 2016 at 5:08 am
Viewing 15 posts - 1 through 15 (of 26 total)