Viewing 15 posts - 1,141 through 1,155 (of 1,424 total)
select distinct
first_value(alertid) over (partition by alerttypeid order by alertid desc) alertid,
alerttypeid
from
#aaa
where
alerttypeid in(4,6);
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 19, 2020 at 12:23 pm
;with
ordered_amounts as (
select distinct first_value(amount) over (partition by userid order by keyid desc) amount from #t)
select
sum(amount) total
from
ordered_amounts;
This...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 18, 2020 at 11:57 am
;with
ordered_amounts as (
select distinct first_value(amount) over (partition by userid order by keyid desc) amount from #t)
select
sum(amount) total
from
ordered_amounts;
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 17, 2020 at 5:12 pm
I need one column for BSP between 1 and 3, one column for BSP between 3 and 5, one column for bsp between 5 and 8 (and up to...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 16, 2020 at 12:52 pm
Sometimes spreadsheets are useful to concatenate together parameterized sql code.
="sum(case when (td.BSP >="&B7&" and td.BSP <"&C7&") and td.WIN_LOSE=1 then td.BSP end) as SumWinnerPrice"&B7&"to"&C7
="count(case when (td.BSP >="&B8&" and...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 15, 2020 at 7:47 pm
declare
@txt varchar(100)='CKnovelty2002_pouch-5AR-OneSize';
--@txt ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 10, 2020 at 12:14 pm
I had a similar difficulty in explaining why I felt procs were preferable to EF.
By "EF" do you mean "Entity Framework" as in Microsoft? You do realize...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 6, 2020 at 1:42 pm
"...from a developer point of view..." Why is it "more difficult" to build with stored procedures:
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 6, 2020 at 12:09 pm
It's all predicated on the false assumption "a billion flies can't be wrong"
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
March 3, 2020 at 12:44 pm
...how the design of a database schema (logical design of tables and queries) is affected by horizontal scaling...
Primarily through indexing. Indexes are logical objects which exist for purely physical...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 29, 2020 at 12:51 pm
There are a lot of assumptions baked into the questions. Why are you storing shopping cart information as serialized data?
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 29, 2020 at 12:34 pm
Calling another procedure isn't returning data from the procedure.
The procedure being called might also return data. In this code test_proc1 calls test_proc2. Both procedures contain a single select statement. At...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 28, 2020 at 5:08 pm
If a stored procedure calls another stored procedure doesn't it return data to the other procedure? The data returned would be via the input variables of the other procedure(s).
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 28, 2020 at 4:19 pm
Here's a simpler alternative to your query
select e.Clinic,ca.Area,
sum(case when ca.AreaVal = 'A' then 1 else 0 end) as A,
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 28, 2020 at 1:01 pm
It appears you have two different sets of information shoe-horned into the same table. Maybe the information was derived from base tables which are more straightforward to query? How is...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
February 26, 2020 at 1:07 pm
Viewing 15 posts - 1,141 through 1,155 (of 1,424 total)