I have 3 TSQL queries that work individually, but I need to combine them into one single query. In Microsoft Access, they were successfully combined u ...
I have 3 TSQL queries that work individually, but I need to combine them into one single query. In Microsoft Access, they were successfully combined u ...
I'm trying but I don't know how to combine two SQL statements including the WITH clause with the UNION ALL. In each of the WITH SQL statements the dif ...
I want values which are less then 100 to turn into 'no' and others to 'yes' but it is throwing an error which is'UNION types integer and text cannot ...
Details These are my tables and data: To get a count of picked Items, I run this query: select item, sum(op.quantity) as quantity from orders o l ...
I have the below query for negative testing, But I want to replace the union all if possible. Need to get data from both SQL without using union al ...
I have 2 tables in Bigquery and I'd like to merge/join them and doing some calculation. Here are the tables : Table A ID Name ...
Hi Guys I have a question. I am still learning and am trying to get some date out. Beneath is the table. It has hundreds of lines, but for example: ...
I have a rather long query which seems to be running very slow. I would like to know if it's possible to select the columns with the same name in the ...
So I have a table with the following columns: For each record in the above table (e.g., stock A with a ENTRY_DT as 2011.08.22 and REMOVE_DT as 2011 ...
Is there a way to expand table 1 into table 2? It is to output each integer between start_no and end_no as a seq_no field, and take the other fields o ...
I have to merge two different tables that contain two types of post into one table with all posts. I've tried using UNION ALL and I get good results u ...
Here is my code: I am getting result is: TRANSACTIONID C_cntct C_nam ST-EMP-ST-LHR-01-66079 ...
I am working on my google analytics course case study and I am trying to create a new table on Big Query- SQL by combining 12 datasets. I keep getting ...
I have a set of tables that all have the following structure: member_ID | Aug_Date | Aug_Score | Aug_Activities... Every month, new columns are adde ...
I have an issue of performance with a query with multiple UNION ALL statements. I need to add (row by row) data from different tables into the same co ...
I have a question regarding the use of UNION ALL and Left Outer Join. What I am trying to achieve is Get the Project Total costs along with few other ...
The purpose of this query would be to do a calculation based on if today's date is a weekday or a weekend and use it after with Union All, however I a ...
What is wrong with this union? first 'select' and ')' are incorrect ...
I have two tables that reference each other: Now I want to add a new room and add a few dozen items to go into it. Let's say I don't know how ma ...
I have 3 tables, users, user_spents, and user_incomes. user_spents and user_incomes tables contains activities of users per date. There can be ...