HIi Have a queryselect sub_source_id ,a.[STATION_NAME],ISNULL(c.[Code], '') [Code], ISNULL(c.[Name], '') [Name], a.from, a.tillfrom(select sub_source_id, STATION_NAME,min(DATETIME_OF_USE) as from, MAX(DATETIME_OF_USE) as till from dbo.table_a as a with (nolock) left outer join dbo.tyable_b as b on a.SUB_SOURCE_ID = b.STATION_CODEwhere DATETIME_OF_USE between '2015-10-01' and '2015-12-31' and source_id = 2 group by sub_source_id, STATION_NAME) as aleft outer join [dbo].[Station_Programs_04_2015_09_2015] as c on a.SUB_SOURCE_ID = c.[MI Station Code] GROUP BY sub_source_id , a.[STATION_NAME], c.[Code], c.[Name], a.from, a.tillthat is SUSPENDEND with wait type PAGEIOLATCH_SHHow can i solve the problem in order to run the query without problems (please tell me the steps)do i have to change something in querythanks ina dvance
↧