SELECT ARTIKLS.ANUMB AS ARTICLE_PROF, ARTSVST.ASKL1 AS ARTICLE_SKLAD, ARTSVST.ASKL2 AS ARTICLE_1C, ARTIKLS.ANAME AS NOMNAME, ARTSVST.CLPRV AS TARIF_ED_IZM, COLSLST.CNAME AS CVET_TEKSTURI, COLSLST.CNAMP AS CVET_ARTICLE, ARTSVST.CLPRC AS TARIF_OSN_TEKSTURI, ARTSVST.CLPR1 AS TARIF_VNUTR_TEKSTURI, ARTSVST.CLPR2 AS TARIF_VNESHN_TEKSTURI, ARTSVST.CLPRA AS TARIF_DVUHSTORONNEY_TEKSTURI, GRUPART.MNAME AS NOMGRUPNAME, GRUPART.MUNIC AS GRUPUNICNOMER, ARTIKLS.NUNIC AS KATEGORYUNICNOMER, ARTIKLS.APREF AS KATEGORY, ARTIKLS.ANAMP AS NOMNAMECONTR, CORRENC.CNAME AS VALUTE, CASE WHEN ARTIKLS.ATYPI = 1 THEN 'ïîã.ì.' WHEN ARTIKLS.ATYPI = 2 THEN 'ì.êâ.' WHEN ARTIKLS.ATYPI = 3 THEN 'øò' WHEN ARTIKLS.ATYPI = 5 THEN 'êîìïë.' ELSE 'íåèçâåñòíî' END AS ED_IZM
FROM COLSLST RIGHT OUTER JOIN ARTSVST ON (COLSLST.CNUMB = ARTSVST.CLNUM) RIGHT OUTER JOIN ARTIKLS ON (ARTSVST.ANUMB = ARTIKLS.ANUMB) LEFT OUTER JOIN CORRENC ON (ARTIKLS.CNUMB = CORRENC.CNUMB) LEFT OUTER JOIN GRUPART ON (ARTIKLS.MUNIC = GRUPART.MPREF)
Plan PLAN JOIN (JOIN (JOIN (ARTIKLS NATURAL,JOIN (ARTSVST NATURAL,COLSLST NATURAL)),CORRENC NATURAL),GRUPART INDEX (RDB$PRIMARY8))
Adapted Plan PLAN JOIN (JOIN (JOIN (ARTIKLS NATURAL,JOIN (ARTSVST NATURAL,COLSLST NATURAL)),CORRENC NATURAL),GRUPART INDEX (IGRUPART))
------ Performance info ------ Prepare time = 0ms Execute time = 19s 531ms Avg fetch time = 1 085,06 ms Current memory = 753 304 Max memory = 843 240 Memory buffers = 2 048 Reads from disk to cache = 859 Writes from cache to disk = 0 Fetches from cache = 30 923 245
|