Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
167 views

I'm working with a large Polars LazyFrame and computing rolling aggregations grouped by customer (Cusid). I need to find the "front" of the rolling window (last Tts_date) for each group to ...
Liisjak's user avatar
  • 37
0 votes
1 answer
60 views

I'm trying to use power query to aggregate some invoicing columns by project number in power query. I'm currently using a group by function which looks at the project number and then aggregates each ...
Stephanie Noyce's user avatar
1 vote
1 answer
79 views

I have the following tables with values: CREATE TABLE Produkty ( Id NUMBER(10) NOT NULL, Nazwa VARCHAR2(50) NOT NULL, Status VARCHAR2(50) NOT NULL, CONSTRAINT CHK_Status CHECK (Status ...
aretai's user avatar
  • 1,655
0 votes
1 answer
47 views

In my bounded context we have User and webinar aggregate roots. The invariant is that a user can only be added to webinar once. To fulfill this, webinar aggregate has a list of participant Ids to ...
Sepehr Abaszadeh's user avatar
0 votes
0 answers
36 views

I have a table like this: total alert group_id hlevel full_path parent_id root_group_id 5100FFFF-60B6-D5CD-FCCD-A8A3E03F0000 1 BizA\DivA 5100FFFF-60B6-D5CD-BFBA-A8A3E03F0000 5100FFFF-60B6-D5CD-FCCD-...
gpkbz's user avatar
  • 1
0 votes
0 answers
67 views

I´ve got a large dataframe that I´ve got to aggregate and then show counts by geo, the lines should be unique by product, sex and education… already use dplyr to group by and then count but only get ...
Luisa's user avatar
  • 25
0 votes
1 answer
70 views

I have a fact table about sales figures (SALESSTATS table, in MYSCHEMA schema), and I created an aggregate table MYAGG (in MYSCHEMA as well), but when querying revenue per company, it ignores the ...
Chi_Iroh's user avatar
  • 1,169
0 votes
1 answer
166 views

I started down the rabbit hole of Android Health Connect, and everything was going great until it started giving me some weird results. I am currently using the latest release candidate version 1.1.0-...
Neglected Sanity's user avatar
0 votes
0 answers
78 views

ThrottlingInflightRoutePolicy routePolicy = new ThrottlingInflightRoutePolicy(); routePolicy.setMaxInflightExchanges(20); routePolicy.setResumePercentOfMax(70); from("jms:...
Mallu Golageri's user avatar
2 votes
3 answers
143 views

I have the result of a subquery: SELECT maker, p.type, COUNT(DISTINCT pc.model) pcs FROM Product p INNER JOIN Pc pc ON p.model = pc.model GROUP BY maker, p.type UNION SELECT ...
Igor's user avatar
  • 49
1 vote
2 answers
138 views

We are building a system using Domain-Driven Design (DDD) in C# (.NET), and we have a performance-related design concern. Currently, in our domain model, a Customer creates OfferDetails, and each ...
NoName's user avatar
  • 245
0 votes
1 answer
101 views

Objective To create a function in R {base} that produces a square matrix showing concatenated game results between players. The matrix should display the result of each pairwise match, concatenating ...
clp's user avatar
  • 1,702
-1 votes
3 answers
66 views

Basically i have a big joined table with bunch of key columns (some of witch are calculated) and a value column: key1 key2 key3 key4 value1 ABC F cat 1 10 ABC F cat 2 20 ABC F cat 2 10 ABC F dog 1 20 ...
Efgrafich's user avatar
0 votes
0 answers
98 views

I have a table of data that I'm sorting with an index aggregate. The data that I'm indexing has several numbers inside of it. Ex: W-X-Y-Z. If I use the small feature of aggregate, it naturally finds ...
budaclees's user avatar
0 votes
1 answer
118 views

I’m applying the DDD Aggregate pattern in a Spring Boot application. For example, Order is the aggregate root of OrderItem, and they are mapped like this: @Entity public class Order { @Id ...
좋아감자탕's user avatar
3 votes
1 answer
49 views

I am using Kafka Streams to group and reduce a kafka topic. I want to generate an output for a key, if the key and the value are equal for all values against a given key; otherwise don't output ...
simonalexander2005's user avatar
0 votes
1 answer
80 views

A mongodb aggregate command returns a cursor that you can then iterate to get all documents corresponding to the aggregate command. Does this cursor also return documents that were inserted after the ...
MK.'s user avatar
  • 4,077
1 vote
1 answer
66 views

I have code as below to write a json from the below dictionary Looks like there is issue in my group by or aggregate. It is not generating the JSON as expected as give below. import json data = { &...
Virendra Wadekar's user avatar
0 votes
0 answers
48 views

It's rather easy and well documented how to compact the data in clickhouse after TTL, for example from the docs... CREATE TABLE events ( `event` String, `time` DateTime, `value` UInt64 ) ...
Florian Schaetz's user avatar
0 votes
2 answers
99 views

I have a Patient aggregate root entity with a list of Visit child entities under it. Per DDD principles, any operation on a Visit object is done through the aggregate root. Also, any persistence must ...
Martin's user avatar
  • 2,326
3 votes
2 answers
169 views

Among other descriptive statistics, I want to get some quantiles out of my pandas DataFrame. I can get the quantiles I want a couple of different ways, but I can't find the right way to do it with ...
flies's user avatar
  • 2,177
0 votes
1 answer
67 views

Think web forum structure here. My current query gets the timestamps from the oldest and newest posts associated with each thread. What I can't seem to figure out is how to get the userid associated ...
Phaelax's user avatar
  • 2,054
2 votes
3 answers
109 views

Using StringAgg with the distinct=True argument works under normal circumstances, e.g.: entities = entities.annotate(roles=StringAgg( "credits__role__name", delimiter=", ", ...
bur's user avatar
  • 899
0 votes
0 answers
42 views

enter image description hereI have an SPSS dataset in which persons have data in multiple rows. The rows represent a different agency and different grant hours. There are over 70 variables, which is ...
user29734378's user avatar
0 votes
2 answers
190 views

I have a table consists of 30 column in which first 5 columns made up to the primary key and rest are information i want to group on with primary keys. Primary key = year,month,day,hr,ID rest columns =...
Ayush Goyal's user avatar
0 votes
0 answers
73 views

I have a very basic group by function that I want to use in a Cython object but it's something like 400 times slower than a similar function in Python JITed by Numba This is my Cython function @cython....
jmatthew007's user avatar
1 vote
1 answer
75 views

I'm writing a MERN stack app to keep track of product's expiry dates in a store. The app will check to see if today's date is the same or after the product's "expiry date". The query I wrote ...
Ian McInnes's user avatar
-2 votes
2 answers
261 views

I am trying to select the maximum ImportDate for each person. For this person "Bob James" he should have the last 2 rows selected with ID 267311 and 267342. I need to see every column in the ...
Austin 's user avatar
0 votes
0 answers
44 views

I'm currently learning DDD and am having trouble modeling invariants in a many to many relationship Lets suppose I am attempting to model a school scheduling program, and I have the following ...
JackG's user avatar
  • 73
2 votes
2 answers
70 views

I have a DataFrame with a species column and four arbitrary data columns. I want to group it by species and sum up the four data columns for each one. I've tried to do this in two ways: once by ...
Ray's user avatar
  • 55
1 vote
1 answer
74 views

I am trying to write an aggregation to regex match a search string across various fields in a list of items. Here is an example JSON array of those items: { "user": "String", ...
Sniper Noob's user avatar
0 votes
0 answers
54 views

I'm using the ecommerce platform swell, which allows for aggregation queries. I have to return product data with multiple levels of expanded categories. the products have a category_index.id field ...
chuckieDub's user avatar
  • 1,847
1 vote
1 answer
38 views

I have logstash version 7.8.0 Can someone tell me why the aggregation below never shown THREAD_ID field into documents please ? My field : thread_id is added in the end of aggregation .. Sample.log: ...
user3761024's user avatar
0 votes
1 answer
71 views

Can anyone think of a better way to structure a SQL query for this problem? I want to group by account_id and determine whether a type of row exists in the table and just aggregate that to a simple ...
Mike Saull's user avatar
  • 1,447
0 votes
0 answers
79 views

Suppose I have a table of raw data that looks something like this: CREATE TABLE raw_table( uid UInt64, timestamp DateTime64, status String, ... ) ENGINE = MergeTree ORDER BY (...
Sean Goldfarb's user avatar
0 votes
1 answer
43 views

Hello I would like to archive the following, we have a data pool there we store a lot of duplicated items (see a sample below) and i need to query all latest entry's by an distinct id, after wards i ...
dablumino's user avatar
-2 votes
1 answer
56 views

I have two tables, first one has detailed order information. Table A: Restaurants id, brand id, date, order id, order value (usd) Table B: Restaurants id, restaurants name, brand name I want to ...
Bahadır Ayan's user avatar
0 votes
1 answer
36 views

I want to create a variable that is the count of instances of a certain year in my dataset in SPSS. To be more specific, I am analyzing the number of suicides before and after 1996. I have a data set ...
Margaret Nozaki's user avatar
0 votes
1 answer
50 views

I use the date-fns library to work with dates. the code provided their methods. prisma: 5.22.0 @prisma/client: 5.22.0 async getAllOnYear() { const date = new Date() const startYear = ...
Mezantrop's user avatar
0 votes
1 answer
96 views

i am using aggregate plugin to keep count of how many events happened for a particular task id but when i try to use the map values inside the timeout_code i am getting "undefined local variable ...
virat's user avatar
  • 1
0 votes
1 answer
159 views

I have a dataset that looks like this: Dummy table The desired view I'd like is: enter image description here I have tried the STRING_AGG function, which works, but for only one column. See below for ...
user28412706's user avatar
1 vote
1 answer
105 views

Somewhat of an unusual request. We have a software that asks survey questions. Any survey can include any number of questions (From 1 to 30 easily, but there is no limit). The request from the user is ...
Kenneth Lines's user avatar
0 votes
1 answer
88 views

I'm not sure if this can be done in one stored procedure. I got it working using nested views but I want it to be as concise as possible. Every time I try to select from a subquery, I get errors that ...
WannaKatana's user avatar
1 vote
1 answer
107 views

I have data that looks like this loaded into Polars: uid groupid thresholds class data1 data2 data3 data4 X1 X 0.0 0 1 1 1 X2 X 0.0 0 1 1 1 X3 X 0.0 0 1 1 1 Y1 Y 0.0 1 1 1 1 Y2 Y 0.0 1 1 1 1 Y3 Y ...
Ganrelka's user avatar
0 votes
2 answers
56 views

i've searching for how to do this in R, but unfortunately didn't found an easy way to do it. if i have a dataset called people like this A B John Student John Student John Student Sarah Student Sarah ...
damian fiorotto's user avatar
0 votes
1 answer
62 views

I'm quite lost. I tried to aggregate data using this entity @Entity @Table( name = "page_view", indexes = [ Index(name = "idx_page_view_site_date", columnList = &...
Hugo Lassiège's user avatar
0 votes
1 answer
32 views

How do I sort a response from a table according to the other table's key? For example: I have a table named user data. The contents of the table is: { _id:objectId, name:string, age:number} Now I have ...
Devkong's user avatar
1 vote
1 answer
103 views

I am reading some material about C++17, I have a question about inheritance between aggregates. If an aggregate inherits from an other aggregate, isn't it a problem ? Is there not any risk of slicing ...
Oodini's user avatar
  • 1,463
0 votes
1 answer
65 views

We are learning and implementing Domain-Driven Design (DDD), and we have a sample entity below: PaymentInvoice. My question is, is it acceptable to pass a list of PaymentInvoice entities to the ...
Eduwow's user avatar
  • 177
0 votes
1 answer
50 views

I have the below dataframe created in PySpark code: +---------------+-------------+---------------+------+ |TransactionDate|AccountNumber|TransactionType|Amount| +---------------+-------------+--------...
John's user avatar
  • 5

1
2 3 4 5
169