I am currently studying SQL and I am still a newbie. I have this task where I need to split some rows with various entries like dates and user IDs. I ...
I am currently studying SQL and I am still a newbie. I have this task where I need to split some rows with various entries like dates and user IDs. I ...
I am just learning Snowflake. Now having a problem which is probably about unnest/flaten etc. I have a SQL code in Athena: The results is a date se ...
I'm looking for assistance in the below SQL query where column policy_array has NULL values in some rows, but arrays of policy data in others. I would ...
I have PostgreSQL 11.5 with something similar to this jsonb data: My desired result is (how many times a title is published titl ...
I have a table like this one here (basically it's data from a google form with multiple choice answers in column A and B and non-muliple choice data i ...
My table shows the total budget of marketing campaigns for a given period: Campaign Name StartDate EndDate Budget (t ...
I want to unnest the res2dataframe but I got the following error: x[[1]] must be a vector, not a object. What should I do? ...
I'm trying to unpack a dataframe with columns that contain sub dataframes in each row. The problem is, that the sub dataframes in each column have di ...
I have a simple data set. The row names are a meaningful index and column 1 has a list of values. What I eventually want is the average of that list f ...
I'm trying to unpack json inside BigQuery. The data contains an array with multiple columns and rows. I'm looking for a way to unpack this to have all ...
I'm trying to unnest a json file. The JSON has multiple lists of dictionaries inside a list of dictionaries. I'm trying to flatten everything in it an ...
I need to flatten a text column to two separate columns. I'm using: Result : Desired result : coolershelf shelfposition ...
I have a dataframe like this: dataframe name: df_test ID Data test-001 {"B":{"1":{"_seconds":1663 ...
I have one table (Bigquery), which has ', ' separated values in two columns: For each tag_id is 1:1 matched with a tag_name. I want to split the co ...
I have a table and I'm querying with Presto SQL. I need to unnest a column that is a key value pair. The key is a string, the value is an array. The v ...
I have a table like this: ID A's price B's price C's price D's price A,B,C 1 2 ...
am trying to extract the words so that I can create a wordcloud but have some difficulties this is the code: I have put the hash tags in front of t ...
Given a table Names: and a table Widgets where each widget has an array of name id's: I need to create a SELECT query to replace an array with n ...
. Answers to this question are eligible for a +50 reputation bounty. Th ...
Using PostgreSQL 9.6, I'm trying to insert rows into a table map, generated from another table tbl. tbl name in1 in2 ...