I've 2 tables GLBALASONHIST (1 billion rows) & TB_INTEGRATED_REPORT_CONFIG(1**0 thousand rows****)**. I need to fetch some rows by joining these tables and insert those rows into a new table RTEMPGLBALHISTORYDATA.
My current query is given in the screenshot:
this query is taking way more time to be executed, more than 1 hr. so, I need some advice to make the execution time lesser. Is there any way to do the requirement?
.