日期:2014-05-16 浏览次数:20446 次
Sort(TOP 1, ORDER BY:([t].[dbgndate] ASC)) |--Filter(WHERE:(CONVERT_IMPLICIT(int,[db].[dbo].[product_info].[product_status] as [t].[product_status],0)=(50) AND CONVERT(varchar(100),[db].[dbo].[product_info].[dbgndate] as [t].[dbgndate],23)>=CONVERT(varchar(100),getdate(),23) AND ([db].[dbo].[product_info].[product_issue] as [t].[product_issue]='2' OR [db].[dbo].[product_info].[product_issue] as [t].[product_issue]='3'))) |--Nested Loops(Inner Join, OUTER REFERENCES:([t].[uid])) |--Index Seek(OBJECT:([db].[dbo].[product_info].[ix_t_product_ulineid] AS [t]), SEEK:( [t].[ulineid] =[db].[dbo].[t_line].[uid] as [tl].[uid] ) ORDERED FORWARD)
Top(TOP EXPRESSION:((1))) |--Filter(WHERE:([db].[dbo].[product_info].[product_issue] as [t].[product_issue]='2' OR [db].[dbo].[product_info].[product_issue] as [t].[product_issue]='3')) |--Nested Loops(Inner Join, OUTER REFERENCES:([t].[uid])) |--Index Seek(OBJECT:([db].[dbo].[product_info].[ix_product_info_status_dbgndate] AS [t]), SEEK:( [t].[cstatus]='50'), WHERE:([db].[dbo].[product_info].[ulineid] as [t].[ulineid] =[db].[dbo].[t_line].[uid] as [tl].[uid] AND CONVERT(varchar(100),[db].[dbo].[product_info].[dbgndate] as [t].[dbgndate],23) >=CONVERT(varchar(100),getdate(),23) ) ORDERED FORWARD)
create index ix_product_info_ulineid_status_dbgndate on product_info(ulineid, product_status, dbgndate) include(product_issue, uid);
|--Nested Loops(Inner Join, OUTER REFERENCES:([tl].[uid], [Expr1038]) WITH ORDERED PREFETCH) |--Sort(ORDER BY:([tl].[dupdate] DESC)) | |--Index Seek(OBJECT:([db].[dbo].[t_line].[ix_t_line_cstatus_cissue] AS [tl]), SEEK:([tl].[cstatus]='50' AND [tl].[cissue]='2' OR [tl].[cstatus]='50' AND [tl].[cissue]='3') ORDERED FORWARD) |--Top(TOP EXPRESSION:((1))) |--Index Seek(OBJECT:([db].[dbo].[product_info].[ix_t_product_info_ulineid_cstatus_dbgndate] AS [t]), SEEK:([t].[ulineid]=[db].[dbo].[t_line].[uid] as [tl].[uid] AND [t].[product_status]='50'), WHERE:(CONVERT(varchar(100),[db].[dbo].[product_info].[dbgndate] as [t].[dbgndate],23)>=CONVERT(varchar(100),getdate(),23) AND ([db].[dbo].[product_info].[product_issue] as [t].[product_issue]='2' OR [db].[dbo].[product_info].[product_issue] as [t].[product_issue]='3')) ORDERED FORWARD) | | | |--Clustered Index Seek(OBJECT:([db].[dbo].[product_info].[pk_y_product_info_uid] AS [tt]), SEEK:([tt].[uid]=[db].[dbo].[product_info].[uid] as [t].[uid]) ORDERED FORWARD)