Skip to main content
0 votes
3 answers
185 views

Here is an extract of table B_TimeEntryMatter. ProformaNr ActivDate Description 451894 17/12/2025 To the provision of a Certificate of Incumbency by the Secretary; 451894 18/12/2025 To time spent in ...
user32213456's user avatar
-1 votes
2 answers
60 views

this shows me all customers (DISTINCT) with unfulfilled orders: SELECT DISTINCT customer FROM orders WHERE shipped='yes' ORDER BY customer ASC Works fine, now i want another query which only shows ...
WeekendCoder's user avatar
  • 1,081
1 vote
1 answer
75 views

I'm using DolphinDB's array vector as a table column, and I need to deduplicate the elements in each row of this column. I tried using the distinct statement for deduplication, but according to the ...
Polly's user avatar
  • 349
4 votes
4 answers
129 views

Looking for SQL that returns a list of GROUPIDs (from the ACCOUNT_GROUP) table that have no ACCOUNTS that are found on the ACCOUNT_LIST table. ACCOUNT_GROUP (table) GROUPID ACCOUNT GROUP1 111111 ...
Don Neary's user avatar
2 votes
3 answers
117 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
1 vote
2 answers
161 views

I'm trying to get a distinct count of multiple columns grouped by another column, but I want the results to only include counts greater than ONE. So if I have the following: SELECT * FROM cast ORDER ...
Michael Kaiser's user avatar
-3 votes
1 answer
98 views

If I execute the following query in my SQL Server: SELECT COUNT([UserName]), COUNT(DISTINCT [UserName]) FROM [UsersTable] I get the following (and expected) result: Now if execute this query: ...
Daniel_Kamel's user avatar
0 votes
3 answers
89 views

I have this table: | arrs | |:----| | {10000,10000,10000,10000} | | {100,200,300} | | {400,500,600} | | {100,200,600} | How get this result? | uniques | |:-------| | 10000 | | 100 | | 200 | | 300 | | ...
user23025019's user avatar
0 votes
0 answers
43 views

Purpose of my query is to get distinct rows, from a 600 000 rows database. Everything is fine except that, at one time,I have to keep/extract the first rows of groups after sorting. (step 7 to 9) And ...
nikau's user avatar
  • 23
0 votes
0 answers
185 views

Query 1: SELECT DISTINCT COL FROM TABLE WHERE MONTH = '2024-09-01' Query 2: SELECT COUNT(DISTINCT COL) FROM TABLE WHERE MONTH = '2024-09-01' Query 1 returns 27M ...
Furia 824's user avatar
0 votes
2 answers
90 views

I want to compare the count of DELIQUENCY_COUNT=0 with the count of CYCLE_DELIQUENCY = A and Count of DELIQUENCY_COUNT=1 with count of CYCLE_DELIQUENCY = B and so on. If the count is different a ...
Rakesh's user avatar
  • 11
0 votes
1 answer
24 views

I have an Elasticsearch index that stores documents with the following fields: timestamp (date) priority (integer) user_id (string) I need to find 5 unique user_id values from the most recent and ...
pred1212's user avatar
0 votes
1 answer
70 views

I have two tables. Both contain the columns order_ (integer), id_ (UUID), and text_ (text). The tobe table has the correct order_ values while the asis table has incorrect order_ values for the same ...
yuoggy's user avatar
  • 147
0 votes
2 answers
92 views

I want to select all the rows in a database table where the values in FileSize are unique. I am using .NET, OleDB, and SQL against an Access database: ID FileName FileSize ------------------------ ...
Alan's user avatar
  • 67
0 votes
1 answer
93 views

I need help with a T-SQL query where I'm adding two columns together. The problem is my code does add them together but then double counts. I've searched around for similar queries but haven't found ...
topstuff's user avatar
  • 159

15 30 50 per page
1
2 3 4 5
346