I have a problem with table's iteration. There is status product (test_product) in stock and actions: add or remove from stock. pro ...
I have a problem with table's iteration. There is status product (test_product) in stock and actions: add or remove from stock. pro ...
I'm trying to solve a problem where I have a table with different versions of an item every time the item is updated. Person E ...
I have the first three fields of the following table. I want to compute the number of consecutive days an amount was higher than 0 ("days" field). ...
I want to aggregate a transaction table in a way that it sums checking a variable in next row and sums if condition is met, otherwise breaks and start ...
order_at delivery_at 2023-01-01 2023-01-03 2023-01-02 2023-01-03 ...
Here's my sample input tables: employee_id project effective_date** 1 A 2014-08-13 ...
The array of numbers should be transferred to ranges to compress the number of records. This is an example: Current: L2PARAM_ID ...
I need to find the way to get the number of events that happens in every day between a period, including days in which no event occurs, getting that d ...
In SQL Server 2016, I have a table with the following chaining structure: dbo.Item OriginalItem ItemID ...
I have a file that contains all of the time punch shifts for each employee like so: employee start_time end_time ...
Below is the input table: Month Value 1 200 2 - 3 - ...
Outer Join 'fill-in-the blanks' I have a pair of master-detail tables in a PostgreSQL database where master table 'samples' has some samples with a t ...
I have a table with users, a month series, a flag for eligibility, a running sum of an amount, and an incremental amount column (example data below). ...
What I want is to show the first date of a 5 day streak, if it is a total of 10 days it counts as 2 streaks. The range of months can be set specifical ...
I am new to Power Query (M Language). I understand the basics of Power Query but I have come across a use case with special grouping requirements. Su ...
I have the following task: Write a query to get the max gap between active dates for each user in the following table: (e.g, user 1 will have max. gap ...
I have +10k IDs and, for each one of them, there are 10 zones; each zone can be affected in some way I want to count the time duration that each zone ...
I am trying to find out the count of sequential occurrences and their lengths for a certain user action. Let's say it is monthly logins. Below is a si ...
I have a gaps and islands SQL problem combined with a recursion. Background: I run a PostgreSQL database with school vacations and bank holidays from ...
:) How to combine product with Period of validity using LEAD function? Any idea how i can select device_id, valid_from,valid_to,product in the sense ...