Viewing 15 posts - 751 through 765 (of 1,424 total)
Is this still the best way to do this in 2021? Google landed me at another SSC Forum from 2005, which I can't find anymore, and now I'm using this
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
This seems to return output similar to the picture. Is it just missing a total row? What's not working?
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
You could unpivot both tables and inner JOIN them. Here's an example based on another forum question/answer. Something like this
drop table if exists #tTableA
go
create table #tTableA(
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
It was very quick, and I knew about it yesterday, but didn't really do much other than give a vote to try. Still amazed it happened.
Comments, suggestions, feedback on...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
The queries ends up wrapping a DataReader in .Net 5, which although technically are created to handle SELECT statements better, still works perfectly for also INSERT/UPDATE/DELETE statements, but you...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
It's an interesting approach. There are a few questions that jump out tho. There's no mention of how DML statements like INSERT/UPDATE/DELETE are handled? Could it execute stored procedures? How...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
You know that the LAST_VALUE() is NEVER going to be before the CURRENT ROW, so it's completely unnecessary to specify the beginning of the window as UNBOUNDED PRECEDING when...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
This is sort of confusing because the ORDER BY of the outermost query includes the 'head' column as well as 'Trans_ID'. The SUM OVER ORDER BY is only by '(select...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
This comes really close. It uses a FULL JOIN which is functionally both a LEFT JOIN and a RIGHT JOIN. It seems the example Status_ToolType column might have some consistency...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Should've hit refresh 🙂
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Maybe the correlated subquery in the WHERE clause is converting your LEFT JOIN into an INNER JOIN. Maybe try expressing OBS as OUTER APPLY SELECT TOP(1) ... instead.
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Viewing 15 posts - 751 through 765 (of 1,424 total)