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
GroupBy based on condition Pyspark
I have a peculiar problem to which I don't see an easy solution (and efficient one). I have a list of addresses (more than 10M) with different user_time_active. I also have count per user_time_active ...
Martin Walczyński
Votes: 0
Answers: 1
Use last_value() with group_by instead of as window function in Snowflake
I would like to use last_value() or any similar function in a group by query instead of as a window function. It it possible?
CREATE TABLE test
(Group_id INT, Fecha DATE, Sales INT)
;
INSERT INTO...

alvaropr
Votes: 0
Answers: 1
If there are several Positions, then find only the main one, otherwise take another
+-------------+------------------+----------+---------------+--------------+
|Id |EmployeePositionId|Date |Time |TypeEmployment|
+-------------+------------------+----------+-...
Masta
Votes: 0
Answers: 2