I have a table that has date information and is being copied to another table and trying to perform an incremental load. date = date format hour = int ...
I have a table that has date information and is being copied to another table and trying to perform an incremental load. date = date format hour = int ...
I've been trying to run a subquery in GCP BigQuery but it's giving an error. This is part of the Google Data Analytics course. The intent is to "compa ...
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 ...
A Teacher has many Students. When I am showing the Teachers list I also want to show the counts of Student for each Teachers. How can I do this by usi ...
I made a query to have a column of "Prof" and it works perfectly but when I made an UDF with same data it gives me this error Correlated subqueries th ...
I want to act like a subquery in elasticsearch. Let's look at the example below. create index PUT test_index { "mappings" : { "properties ...
I've the following subquery in an sql query: Problem I have I believe lies in that both table ALUMNOS and UNIDADES have a column named 'NOMBRE' so ...
How would I search multiple (in this example, say 2) columns for an array of values? For example, here is my table Documents : DocNumber and Compa ...
I'm asked to do this one: return the country with the most customers.(in the case of a tie, display both) I have this query: And I get this error: ...
I'm trying to lookup a value (c) from a table (Table2) and link it to a value (a) that I have in Table1. When I run the following lines I get an error ...
Using Snowflake I am searching for entries where an individual carried out an action. I search for two identifiers AGENT_NAME and AGENTID and then I u ...
Lets say I have a table called TABLE with the columns col1, col2, col3 and col4 I want to select col1, col2 and col3 but distinct col2 values from th ...
I would like to clean my data by removing all of a certain column that is only listed once or twice. It currently looks like this: ...
Here's the prompt and the code I'm using. "FIND THE NAME OF THE FEMALE EMPLOYEES WHOSE WORKING HOURS FOR ALL PROJECTS IS MORE THAN 20 HOURS" Now I ...
In this case I am trying to get the ratio of warehouses in KY and warehouses in TN. for example. I tied the WHERE clause but it limit myself to on ...
I want to write a query to find ids having coach more than once but the output should contain rows with value client as well irrespective of its cou ...
I have a table that has some file input data with file_id and file_input_date. I want to filter / group these file_ids depending on file_input_date. T ...
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 am creating a Snowflake SQL UDF. I keep running into SQL compilation error: Unsupported subquery type cannot be evaluated. I have tried to do severa ...
I am not able to further select from a joined subquery. I have data in three tables: "events", "records" and "work_list". Each table has one piece of ...