I have a MS SQL Server database for a restaurant. There is a transactional table that shows the meals ordered and, where applicable, the optional (cho ...
I have a MS SQL Server database for a restaurant. There is a transactional table that shows the meals ordered and, where applicable, the optional (cho ...
I am trying to compute stats for basketball lineups given the play-by-play data. In particular I have a dataframe which more or less looks like this ...
I'm trying to understand the logic behind the syntax below. Based on the following question, table and syntax: Write a query that'll identify returni ...
I am working with some data from Jira. In Jira there are "Issues" and each issue can go through states such as New, In Progress, Review, etc. I want t ...
Suppose we have the following setup: In other words: A category can have sub-categories. (And if the category has no parent, then it's a "top-level ...
We have multiple same id's and some of them have values and some of them are null, we wanted to copy the values where it is null. Current scenario ...
I need help with a problem I am facing processing hierarchical data. Schema of the tables that maintain hierarchical data: Category table: Mappin ...
I'm working on for presence control. The check-in and check-out are 2 difference records in a table It is possible that somebody does not check-out f ...
` ` "Error Code: 1630. FUNCTION a.month does not exist." Trying to self-jjoin, MySQL assumes "a.month()" as a funcion. How can I fix this error? ...
I am having trouble wrapping my head around the on statement when doing a self-join. Let's say we have the following table: employe ...
I am struggling to wrap my head around this. I have a data table like this: TABLE: Column_A Column_X Column_Y Colu ...
I want to get name, email, id of both users who followed each other and status equal to 'A'. My friends table screenshot: Note: In the above scree ...
Employees must complete continuing education modules to stay competent. I need to build a report showing supervisors which modules their employees hav ...
I'm trying to build a query in sequelize which basically makes a join between two tables: Resource and ContentTag, which are in a manyToMany relations ...
I have a large dataset and would like to form all pairs of rows satisfying some condition and then calculate some variables based on which parts of th ...
I am trying to join user_id and participant_user_id_list columns as well as looking to only have those accounts in the output that participated with e ...
We recently faced the following "issue" related to a self-join partitioned table, which so far the reason hasn't been revealed... Ps. Consider the ...
As you can see the cities for rows 1,2 are the same but in different positions and the distance is the same. The setup for rows 3,4 are set up the sam ...
I have a Databricks delta table of financial transactions that is essentially a running log of all changes that ever took place on each record. Each r ...
Here is an example table: id content previous next 1 Preheat an oven to 220 degrees C. ...