Viewing 15 posts - 616 through 630 (of 1,402 total)
It could be CRUD but only when implemented by Scrum. Or maybe it's a framework which launches projects miles over the horizon where they explode.
July 16, 2021 at 11:16 am
You could try putting CASE logic inside the SUM functions to evaluate your youdatecol
...
ISNULL(SUM(case when youdatecol>=convert(date, getdate())
...
July 15, 2021 at 7:29 pm
;with
id_split_person_cte(id, [Owner], ItemNumber, [PersonAttending]) as (
select sctr.id, sctr.[Owner], splt_person.ItemNumber, splt_person.Item
from #SplitColumnsToRows sctr
...
July 11, 2021 at 10:48 pm
Got any more examples? It appears there are 2 sets of rules for the 2 different scenarios:
Scenario 1) Owner='' -----> (if [Owner]='' then PersonAttending and Type columns are CROSS JOIN'ed)
Scenario...
July 11, 2021 at 9:07 pm
It seems the data is ordinally JOIN'ed between PersonAttending and Type and CROSS JOIN'ed between PersonAttending and Owner. To do the ordinal splitting this uses dbo.DelimitedSplit8K_LEAD. Ordinal splitters and specifically...
July 11, 2021 at 5:10 pm
Similar to the accepted solution but without the common table expression. It appears Jeff began to code it one way and then switched
select max(case when sp2.ItemNumber=1 then...
July 11, 2021 at 11:21 am
The additional rows were generated using dbo.fnTally
select case when fn.n=0 then k.CDMLOCID else '"' end CDMLOCID,
case when fn.n=0 then...
June 24, 2021 at 12:22 pm
Hmmm it's hard to be certain without testing. I've had issues with inserts of multiple rows with the same system datetime into System Versioned tables. It's the "simultaneous" part it...
June 19, 2021 at 1:34 pm
If I'm understanding this could this be done in the WHERE clause with a bunch of OR conditions.
select *
From Master as pom
WHERE Pom.UserID = @userid
...
June 17, 2021 at 11:37 am
Have a look at the Docs for SUBSTRING
SUBSTRING ( expression ,start , length )
When the CASE statement is evaluated as TRUE, because you're adding +1 to the length LEN...
June 12, 2021 at 3:05 pm
Yes the repository is the better place for the code. There are going to be many changes and now this thread seems incomplete. Maybe it makes sense to start over...
June 10, 2021 at 8:06 pm
Hi Steve Jones, when these posts were consolidated from what were originally 7 separate threads it appears a post(s)? containing the DDL and explanation for having a System Version'ed edition...
June 10, 2021 at 5:06 pm
It's been a few weeks since there's been an update. We've had some work upheaval and also my son's 6th Birthday party and the Memorial Day holiday. Workwise I've been...
June 8, 2021 at 7:56 pm
The function could be included in the SELECT list
select lcd.LoggerDownloadTableName,
smalldatetimefromparts(substring(lcd.LoggerDownloadTableName, 18, 4),
...
June 8, 2021 at 2:36 pm
You could try SMALLDATETIMEFROMPARTS
select v.input,
smalldatetimefromparts(substring(v.input, 18, 4),
...
June 8, 2021 at 1:43 pm
Viewing 15 posts - 616 through 630 (of 1,402 total)