Viewing 15 posts - 436 through 450 (of 1,396 total)
In a CTE you could select the date difference between the CreatedDate and the LEAD(CreatedDated, 1, default) where the default is the current month (+1 to deal with boundary crossing). ...
March 16, 2022 at 2:38 pm
Just a quick venting/raging......Entity frameworks using code first is the spawn of the devil himself. It is seriously one of the worst anti-patterns I have ever seen. Thanks I...
March 10, 2022 at 5:26 pm
It's another case of no sample data. If the hierarchyid's are conventionally formed using '/' delimiters then they can be ordinally split. One way to derive the original adjacency could...
March 6, 2022 at 3:52 am
I have a fellow that's trying to resolve some performance issues in a HierarchyID-based table. I just don't use HierarchyID because I've found or made better ways to work...
March 5, 2022 at 2:02 pm
SSC is under massive attack from rogue travel agents 🙂
March 3, 2022 at 12:46 pm
Wading in without any knowledge of Azure Data Factory at all... it seems like maybe the system is expecting a "pagination_token" along with the initial request? You're telling it how...
March 2, 2022 at 2:07 pm
Why does a single datetime of a "mess up" apply to every vehicle worked on subsequently during that day? What if the mistake was made at 11:59PM there's only 1...
March 2, 2022 at 1:24 pm
Seems similar to the other recent question
with parts_cte(partid) as (
select partid
from #temp
group by partid
...
February 28, 2022 at 3:33 pm
Similar to kaj's code
with unq_prs(GivenPartNumber_Non,vcompanyid) as (
select GivenPartNumber_Non,vcompanyid
from #notmappedsources
group by GivenPartNumber_Non,vcompanyid
having...
February 23, 2022 at 11:55 pm
Imo three triggers would be preferred. Right from the start it's confusing because it's a "catch all" for the 3 scenarios, INSERT, DELETE, UPDATE. In code each scenario is intended...
February 20, 2022 at 1:56 pm
The first CTE (named 'UDT_CKB_SNAPSHOT') contains GROUP BY but no HAVING clause and no aggregate function(s) in the select list. It's equivalent to SELECT DISTINCT which is much more readable. ...
February 18, 2022 at 12:34 pm
Maybe try it without the VIEW
February 17, 2022 at 2:12 pm
Perhaps the spaces are present in the input data. One quick way to get past the issue could be to import into a staging table and then use a query...
February 16, 2022 at 9:22 pm
The thread is a duplicate. Regarding just the first 4 lines of the procedure
Begin
-- these 2 should always be set in ALL sp's
-- set nocount on;...
February 16, 2022 at 7:21 pm
It happened to be an article (which I vote yes also to keeping open) but idk it could've been a regular forum post. Those come up in searches. A new...
February 15, 2022 at 10:18 pm
Viewing 15 posts - 436 through 450 (of 1,396 total)