Viewing 15 posts - 436 through 450 (of 1,419 total)
Checking back in here. The OP generated the 15 minute data from the recursive CTE and that's all the data they currently have? As an aside: a recursive CTE is...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
May 20, 2022 at 12:01 pm
Imo the question needs input data in SQL and the expected output
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
May 17, 2022 at 11:19 am
Or maybe a query
;with test_data as (
select cast('08/31/2021' as date) as [period date],
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
May 13, 2022 at 1:44 pm
Maybe try this. If ISJSON(@j1) equals 1 then it's readable
select oj5.*
from openjson(@j1) oj1
cross apply openjson(oj1.value) oj2
cross apply...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
May 12, 2022 at 1:25 am
Assuming 'Prm' is ordinal maybe something like this
[EDIT] Got rid of comments
;with rn_cte as (
select *,
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
May 2, 2022 at 12:38 pm
The word 'key' surrounded by brackets [] is not being displayed. It's there and I see it when I edit the post. It's supposed to say "...psuedo-column names 'key' surrounded...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 21, 2022 at 1:23 pm
It's tl;dr. Here's a way to open that piece of JSON tho. At the end of the day JSON is based on key value pairs. If you don't provide OPENJSON...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 21, 2022 at 1:18 pm
This feels almost like an undocumented "feature" (similar to quirky updates)... I know I would be a bit hesitant in how I used this and would probably continue...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 19, 2022 at 4:52 pm
IndyMike wrote:That's really very clever. I can see making some code much cleaner using this instead of nested REPLACE operators.
How?
The way I came across this functionality was as a...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 18, 2022 at 8:18 pm
You're using C# to do things which could also (better, some might say) be done in SQL Server. You could use xp_DirTree to read filenames from a folder and use...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 16, 2022 at 2:52 pm
There is a MERGE statement which does some data consolidation is being run very 10-15 mins. I dont know why. They are giving weird reasons saying its a business...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 15, 2022 at 11:06 pm
Easy. Exactly the rabbit hole we all fall into sometimes.
If life was easy, would any of us have a job? After all, some in politics imply with a couple...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 5, 2022 at 3:30 pm
We're trying to identify groupings in events, no? You've yet to describe or list the exact output you're looking for from the query. Route 810030 has Grp 10, 16, and...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 5, 2022 at 3:41 am
One way to select intervals where the drop off grouping is hierarchically preferred to the pick up grouping could be to divide the data into two groups: Group1 = BookingID's...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 4, 2022 at 1:29 pm
Old thread on a 7 year delay! Minor correction to the earlier response tho. For generic SQL statements the default is OFF, however, for TRIGGERS it's ON. The documentation only...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 31, 2022 at 9:43 pm
Viewing 15 posts - 436 through 450 (of 1,419 total)