Viewing 15 posts - 271 through 285 (of 3,544 total)
Wow this thread went a bit sideways 🙁
When I first read the first post I naturally thought of possible solutions. I did not even think about Monday to Monday...
Far away is close at hand in the images of elsewhere.
Anon.
May 6, 2018 at 3:11 am
Why not just use a cartesian of possible combinations of start and end day (42 excluding same start and end day) together with the number of days and then do a simple lookup
Far away is close at hand in the images of elsewhere.
Anon.
May 2, 2018 at 2:41 am
Far away is close at hand in the images of elsewhere.
Anon.
April 24, 2018 at 10:59 am
SELECT
DATEDIFF(day, COALESCE(date0,dateStart),date1),
DATEDIFF(day, COALESCE(date1,date0,dateStart),date2),
DATEDIFF(day, COALESCE(date2,date1,date0,dateStart),date3),
DATEDIFF(day, COALESCE(date3,date2,date1,date0,dateStart),date4),
DATEDIFF(day, COALESCE(date4,date3,date2,date1,date0,dateStart),date5),
DATEDIFF(day, COALESCE(date5,date4,date3,date2,date1,date0,dateStart),date6),
DATEDIFF(day, COALESCE(date6,date5,date4,date3,date2,date1,date0,dateStart),date7)
FROM temp
Far away is close at hand in the images of elsewhere.
Anon.
April 24, 2018 at 6:40 am
Far away is close at hand in the images of elsewhere.
Anon.
April 24, 2018 at 5:56 am
Far away is close at hand in the images of elsewhere.
Anon.
April 17, 2018 at 6:06 am
Far away is close at hand in the images of elsewhere.
Anon.
April 12, 2018 at 2:02 am
Far away is close at hand in the images of elsewhere.
Anon.
April 3, 2018 at 3:57 am
Obscure variation
REPLACE(LTRIM(REPLACE(REPLACE(REPLACE([value],'000.',''),'.000',''),'0',' ')),' ','0')+'H'
Far away is close at hand in the images of elsewhere.
Anon.
March 29, 2018 at 1:49 am
SELECT a.UserAccounts,a.AccountType,a.BillingAccountKey,b.BillingCode,b.[Rank]
FROM #UserAccount a
CROSS APPLY (SELECT TOP (1) t.BillingCode,r.[Rank]
FROM #BillingTransactions t
JOIN #BillingCodeRank r ON r.BillingCode = t.BillingCode
WHERE...
Far away is close at hand in the images of elsewhere.
Anon.
February 28, 2018 at 5:45 am
Far away is close at hand in the images of elsewhere.
Anon.
February 27, 2018 at 6:59 am
Far away is close at hand in the images of elsewhere.
Anon.
February 27, 2018 at 6:58 am
Far away is close at hand in the images of elsewhere.
Anon.
February 27, 2018 at 6:07 am
Check the output row count.
IIRC Reporting Services Excel renderer has a worksheet row limit (circa 65K) and will not render if the number of rows exceeds that limit
Far away is close at hand in the images of elsewhere.
Anon.
February 26, 2018 at 6:21 am
Far away is close at hand in the images of elsewhere.
Anon.
February 16, 2018 at 9:55 am
Viewing 15 posts - 271 through 285 (of 3,544 total)