I need some help and I don't know if this is possible or not
I have a query that returns a few hundred thousand records based on some specific criteria management needs to see.
I need to return that data including any data that wasn't returned in the initial query (left joins and such isn't possible in this one)
Is it possible to do something like:
select some,data from query_using_table
union all
select other,data from data_from_same_table_as_above where records not in (select_query_above)
Or do I have to do crap like temp tables to get what I want?
I have a query that returns a few hundred thousand records based on some specific criteria management needs to see.
I need to return that data including any data that wasn't returned in the initial query (left joins and such isn't possible in this one)
Is it possible to do something like:
select some,data from query_using_table
union all
select other,data from data_from_same_table_as_above where records not in (select_query_above)
Or do I have to do crap like temp tables to get what I want?