Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: Need Solution and Thoughts - Two tables into one?

$
0
0

Hello,

 

So I have been looking at doing the Command and Union statements, and was able to pull it off. It now seems however when displaying the records it takes a very long time to go through it. Is this normal? I may have done this wrong. This is my command statement:

 

SELECT "HISTORY"."ACCOUNTID", "HISTORY"."DESCRIPTION", "HISTORY"."STARTDATE", "HISTORY"."CREATEDATE", "HISTORY"."OPPORTUNITYID", "HISTORY"."USERID", "HISTORY"."CREATEUSER", "HISTORY"."TYPE"

FROM   "sysdba"."HISTORY" "HISTORY"

UNION

SELECT "ACTIVITY"."ACCOUNTID", "ACTIVITY"."DESCRIPTION", "ACTIVITY"."STARTDATE", "ACTIVITY"."CREATEDATE", "ACTIVITY"."OPPORTUNITYID", "ACTIVITY"."USERID", "ACTIVITY"."CREATEUSER", "ACTIVITY"."TYPE"

FROM   "sysdba"."ACTIVITY" "ACTIVITY"

 

And from there, I have an Account table, Opportunity Table, then two User tables (For USERID and CREATEUSER) As long as I don't include any other date from the other tables, it runs fine.


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>