Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.
alter table tmp 1 add index a1 (school_id); alter table tmp2 add index a1 (geo_code); DROP table if EXISTS m_v3; Create table m_v3 AS select a.school_id, a.name, a.adreess b.geo_code, b.sco_code, CASE when sco_code is not null then 'Y' else 'N' end as check_code FROM tmp1 a left join tmp2 b ON a.school_id = b.geo_code GROUP BY 1,2;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.