Hi I have query built on DB Fiddle, MySql 8.0 and I want to see the execution time. I am not sure how to do this on this tool. Can someone help for the query below?
select a.e_id from
(
select *,
DENSE_RANK() OVER(PARTITION by e_id ORDER BY start_date desc)rk,
count(*) over(partition by e_id) as company_ct
from employment
order by e_id asc,start_date desc
)a
where a.rk=1 and a.company_ct>1;