Skip to content

Tag: nested

Nested array in a SQL query

I’m fairly new to programming and I’m struggling with an SQL Query. I want, that the purchased articles (article_id) are grouped in an array, so they are connected to the date column. For a further process, they might be combined ( so date x is combined with articles_id [A,B,C]) To make it clearer…

SQL nested WERE

I’m a beginner in SQL and I don’t understand the nested WHERE request: When I first request: SELECT movies.title, people.name FROM stars INNER JOIN movies ON movies.id = stars.movie_id INNER JOIN …

sql nested “sum (case when) or” select query

I have a select query where I am trying to sum a value based on multiple criteria, grouped by dimension. The output will be the sum of the time greater than 30, 90, or 365 days based on the category, grouped by category. I can’t crack the syntax for this, I hope you can help! The concept looks something…