I didn't quite follow what your desired result is - if you are trying to get the N rows from the first query and the M rows from the second query and put them together so you end up with M+N rows, you can use UNION ALL. It would beSELECT col1, col2,... FROM YourFirstTablesAndJoins WHERE YourWhereClausesUNION ALL SELECT col1, col2,... FROM YourSecondTablesAndJoins WHERE YourWhereClauses
This would require that both the queries return same number of columns and same (or convertible) data types in each column.If you are getting X columns from the first query and Y columns from the second query and want to put them together so you have X+Y columns, you can make the two queries in to subqueries and join them.SELECT a.col1, a.col2, ... b.colA, b.colB,...FROM( SELECT col1, col2,... FROM YourFirstTablesAndJoins WHERE YourWhereClauses) a FULL JOIN ( SELECT colA, colb,... FROM YourSecondTablesAndJoins WHERE YourWhereClauses) b ON yourJoinConditionsHere
You will of course, need to have some rules and columns on which you want to join the results of the two queries.