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)
Function that returns MAX OR MIN dates based on ID count
I have a task in SQL Server where I need to return the RESULT_DATE column using ID, PRODUCT_ID and DATE columns. Task criteria:
If DATE column is filled once for each PRODUCT_ID then I need to return...

Konstantins Kovalovs
Votes: 0
Answers: 1
Convert Sum(x) Keep( Dense_Rank Last Order by y) from oracle to BigQuery with limitation factor
I got an oracle query as below.
with table_a as(
select 1 as call_key, date '2021-06-01' as customer_contact, 1 as status from dual union all
select 1 as call_key, date '2021-06-02' as customer_conta...

riley chen
Votes: 0
Answers: 1
How to get top 5 dense ranked rows in Pandas?
So I tried to get this working. I know how to sort, use nlargest or use rank with method dense.. But somehow I'm still lost.
Here is what I want to achieve:
I always want to have top 3 rows based on ...
botafogo
Votes: 0
Answers: 1