Viewing 15 posts - 721 through 735 (of 1,420 total)
Suppose there's a table of holidays with St Patrick's Day in it. The holiday(s) could be excluded in the query using WHERE NOT EXISTS and a correlated subquery. Because St...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 12, 2021 at 9:23 pm
Yet another application where a tally function could be useful. The projection is off by $1.11 perhaps due to rounding
declare
@revMTD ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 12, 2021 at 8:38 pm
Each record has a PatID, Date, Doctor and upto four possible operation procedures (op1 to op4) that a patient may receive. There are 6 possible options for surgical procedure...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 11, 2021 at 3:10 pm
Yeah, it sort of tastes like sausage... or that's how they get you to try it. They ask you "what's your least favorite meat?" Then tell you it sort of...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 9, 2021 at 9:12 pm
select t2.*
from #map m
join #trades t1 on m.CodeValueFrom=t1.Code
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 9, 2021 at 9:00 pm
Spam is one thing but don't let anyone convince you to try scrapple. It's not "the same thing" it's not even "similar" 🙂
My father in-law made scrapple,...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 9, 2021 at 12:43 pm
My father in-law made scrapple, and my oldest daughter loved it. I really don't remember if he made it for the younger two before he died.
I say to each...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 9, 2021 at 12:30 pm
Spam is one thing but don't let anyone convince you to try scrapple. It's not "the same thing" it's not even "similar" 🙂
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 8, 2021 at 1:22 pm
It seems you're looking to include the ROW1 column in the GROUP BY and ORDER BY clauses but not in the SELECT list. Otherwise, it seems to be a standard...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 5, 2021 at 6:57 pm
The math could look something like this
declare @data table (app_time varchar(8),
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 3, 2021 at 2:40 pm
Here's a simple way which avoids counting
with
a_cte as (select distinct PartId from #FeaturesvalueA),
b_cte as (select distinct PartId from #FeaturesvalueB),
x_cte as ((select * from a_cte except select *...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 2, 2021 at 12:49 pm
Based on the data that's been provided the two tmp_day values are '01' and '02' which don't seem to vary by month. As to which column is subordinate to the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 1, 2021 at 4:47 pm
An alternative to PIVOT is conditional aggregation. The sample data provided only contains 1 value for 'tmp_day' which seems to not agree with the output. So I changed the sample...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 1, 2021 at 2:47 pm
In the first paragraph it says "Windowing functions are limited to the SELECT and OVER clause..." Correction, windowing functions are permitted in both the SELECT list as well as the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 27, 2021 at 1:58 pm
If the array is really JSON then Mark Cowne's answer seems correct. If it's just a delimited string with repeating fixed length segments then something like this could work
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 24, 2021 at 4:31 pm
Viewing 15 posts - 721 through 735 (of 1,420 total)