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
Running Total OVER clause, but Select Distinct instead of sum?
I have the following data set:
| EMAIL | SIGNUP_DATE |
| A@ABC.COM | 1/1/2021 |
| B@ABC.COM | 1/2/2021 |
| C@ABC.COM | 1/3/2021 |
In order to find the running total ...
Samantha Valley
Votes: 0
Answers: 3
Split dataframe by column and keep a set of common columns in each subset
I have a dataframe that has too many variables for me to work with in Stata, so I'm trying to partition it vertically in R so I can work with the smaller sets in Stata. However, I need to keep 5-10 id...
Kelly
Votes: 0
Answers: 2
Partitioning line items in SQL Server
There are three values for column named custom_value, Viable, Non-Viable or none. I want to partition the Viable values because it can have multiple Viables. (To understand this Viable choice is just ...

Steven Marsh
Votes: 0
Answers: 2