Use this tag only for questions about UNION, a keyword of the SQL language for combining the results of multiple SQL queries.
My goal is to execute two different queries and then combine them. My code is: SELECT * FROM some tables WHERE ... …
mysql sql sql-order-by unionI have a SQL Server stored procedure that doesn't give me all the results when I add in the union …
sql-server tsql unionI'm probably not seeing things very clear at this moment, but I have a table in MySQL which looks like …
mysql sql union unpivot lateral-joinI've got a table and I want a query that returns the last 10 records created plus the record who's id …
sql postgresql select limit unionGood Day. So, everythign is in the title :) I am looking to merge the result of two requests and order …
mysql sql-order-by unionThere is an error on PostgreSQL that it gives on one of my select statements. I searched the web for …
sql postgresql types casting unionI always thought of a Join in SQL as some kind of linkage between two tables. For example, select e.…
sql mysql join union intersectionWith a query like this (simplified for clarity): SELECT 'East' AS name, * FROM events WHERE event_timestamp BETWEEN '2015-06…
postgresql sql-order-by unionI have the following select statement where I need to sum each task from table tbTasks and group them by …
sql sqlite group-by union full-outer-join