I have the following query:
EXEC ('SELECT ID,
Date,
Type,
FROM DB2T.BBT') AT DB2
How do I store this into a table so that I can add results from another query to do it? I'm very new to sql and have done a lot of searching but it seems everything I find is specific to that scenario. Is there a simple way to do this?