Try this:
Make your 2 queries.."derived" Tables. Here is a working Northwind example:
Use Northwind
GO
Select OrderID , CustomerID , EmployeeID from
( Select TOP 1 OrderID , CustomerID , EmployeeID from dbo.Orders where ShipCountry='France' Order by ShippedDate )
as derived1
UNION ALL
Select OrderID , CustomerID , EmployeeID from
( Select TOP 1 OrderID , CustomerID , EmployeeID from dbo.Orders where ShipCountry='Germany' Order by ShippedDate )
as derived2
Here it is with your queries plugged in , but I cannot test them since I don't have your DDL.
Select * from
( select top 1 stu_first, stu_last, sum(KIND_hours) as total from STUDENT inner join KIND
on student.stu_id=KIND.stu_id
where (12-(STU_CLASS_OF-2014))=9
group by stu_first, stu_last
order by total desc )
as derived1
UNION ALL
Select * from
( select top 1 stu_first, stu_last, sum(KIND_hours) as total from STUDENT inner join KIND
on student.stu_id=KIND.stu_id
where (12-(STU_CLASS_OF-2014))=10
group by stu_first, stu_last
order by total desc )
as derived2
OLD ANSWER FOR POSSIBLE WORK AROUND
If you need "Order by" distinction between the two sets of data, you can use this trick:
IF OBJECT_ID('tempdb..#TableOne') IS NOT NULL
begin
drop table #TableOne
end
IF OBJECT_ID('tempdb..#TableTwo') IS NOT NULL
begin
drop table #TableTwo
end
CREATE TABLE #TableOne
(
SurrogateKeyIDENTITY int not null IDENTITY (1,1) ,
NameOfOne varchar(12)
)
CREATE TABLE #TableTwo
(
SurrogateKeyIDENTITY int not null IDENTITY (1,1) ,
NameOfTwo varchar(12)
)
Insert into #TableOne (NameOfOne)
Select 'C' as Alpha UNION ALL Select 'B' as Alpha UNION ALL Select 'D' as Alpha UNION ALL Select 'Z' as Alpha
Insert into #TableTwo (NameOfTwo)
Select 'T' as Alpha UNION ALL Select 'W' as Alpha UNION ALL Select 'X' as Alpha UNION ALL Select 'A' as Alpha
select 1 , NameOfOne from #TableOne
UNION
select 2 , NameOfTwo from #TableTwo
Order by 1 , 2 /* These are the "Ordinal Positions of the Column*/
IF OBJECT_ID('tempdb..#TableOne') IS NOT NULL
begin
drop table #TableOne
end
IF OBJECT_ID('tempdb..#TableTwo') IS NOT NULL
begin
drop table #TableTwo
end