python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
group by clause creating wrong result
When using aggregate functions you must include all of the other columns selected inside of a group by clause, but doing so the result becomes incorrect. Take this as an example:
SELECT Squadre.Codice...
newbie
Votes: 0
Answers: 1
PostgreSQL aggregate over json arrays
I have seen a lot of references to using json_array_elements on extracting the elements of a JSON array. However, this appears to only work on exactly 1 array. If I use this in a generic query, I get ...
Aserian
Votes: 0
Answers: 1
DISTINCT result of ARRAY_CONCAT_AGG in BigQuery
I need to compute distinct set of items from the aggregated arrays. I cannot use the array_concat as suggested in similar threads, as I don't know how many arrays I'll be concatenating.
I've tried usi...
piotrga
Votes: 0
Answers: 1
How to query the percent of totals in a group by query
I have a query that pulls the total number of records grouped by the year and length of characters in the identification number. I want to add a column that calculates the percentage of this total aga...
miquiztli341
Votes: 0
Answers: 1