with cte_1 as ( select [a few fields] from [a really big table] where status = [some status] and [date_field] >= sysdate - 365 ), cte_2 as ( select [a few fields] from [the same really big table] where status = [some other status] and [date_field] >= sysdate - 365 ) select /*+ gather_plan_statistics */ [a field], count(*) as rcdcnt from cte_1 inner join cte_2 on cte_1.<field xyz> = cte_2.<field xyz> where cte_2.[date_field] < cte_1.[date_field] group by [a field] order by [a field]
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE