here is my code. SELECT a.ID,a.RAZDEL_NAME,a.SHORT_INFO,a.OBIAVLENIA_COUNT, P_IMAGE = CAST(b.ID AS VARCHAR)+b.IMAGE_EXT FROM dbo.DOSKA_RAZDEL a LEFT JOIN MAIN_IMAGE_LIST b ON a.ID=b.OVNER_ID AND b.WEB_PAGE='DOSKA' AND b.S_PAGE='RAZDEL'
ok, lets examine my execution plan1) on doska_razdel is clustered index scan, because i'am using left join2) on main_image_list is index seek, because this table is internal3) 1,2 collects data trought component nested loops4) before component nested loop is component bookmarkthis bokmark is used , because i have using statement ANDb.WEB_PAGE='DOSKA'AND b.S_PAGE='RAZDEL'
it is normal when bookmark is used before nested loops component, exactly this bookmark component connects to the main_image_list tableon table doska_razdel i have id clustered indexon table main_image_list i have id clustered index andalso second index (on table main_image_list) which is = ovner_id,web_page,s_page,s_partthanks Edited by - marconi8 on 05/09/2003 07:37:33