|
03.11.2009, 16:24 | #1 |
Чайный пьяница
|
Цитата:
Сообщение от Skyway
Если изменить запрос таким образом:
X++: SELECT TAB,PERS_LINK, FM,IM,OT,DOC_NUM, BIRTHDATE,CRMAF_Trans.New_busines_trip_transId,CRMAF_Trip.New_business_tripId, new_date, CRMAF_Trans.New_name, CRMAF_Trans.New_loc, FilteredNew_Kind_trans.New_Kind,new_table_num,New_person, SystemUserId FROM [Kadry].[dbo].[EMPL], [Kadry].[dbo].[PERSON], dbo.FilteredNew_com_trans AS CRMAF_Trans, dbo.FilteredNew_Kind_trans, [Keysystems_MSCRM].[dbo].[FilteredSystemUser],dbo.FilteredNew_Business_trip AS CRMAF_Trip WHERE (CRMAF_Trans.New_Trans_KindId =FilteredNew_Kind_trans.New_Kind_TransId ) AND (New_person=SystemUserId) AND (CRMAF_Trans.New_busines_trip_transId=New_business_tripId) AND NOT (New_busines_trip_transId is NULL) AND (TAB =new_table_num ) AND (PERS_LINK = PERSON.LINK) Код: SELECT TAB ,PERS_LINK ,FM ,IM ,OT ,DOC_NUM ,BIRTHDATE ,CRMAF_New_com_trans.New_busines_trip_transId ,CRMAF_New_Business_trip.New_business_tripId ,new_date ,CRMAF_New_com_trans.New_name ,CRMAF_New_com_trans.New_loc ,CRMAF_New_Kind_trans.New_Kind ,new_table_num ,New_person ,SystemUserId FROM [Kadry].[dbo].[EMPL] ,[Kadry].[dbo].[PERSON] ,dbo.FilteredNew_com_trans AS CRMAF_New_com_trans ,dbo.FilteredNew_Kind_trans AS CRMAF_New_Kind_trans ,[Keysystems_MSCRM].[dbo].[FilteredSystemUser] ,dbo.FilteredNew_Business_trip AS CRMAF_New_Business_trip WHERE (CRMAF_New_com_trans.New_Trans_KindId = CRMAF_New_Kind_trans.New_Kind_TransId ) AND (New_person=SystemUserId) AND (CRMAF_New_com_trans.New_busines_trip_transId=New_business_tripId) AND NOT (New_busines_trip_transId is NULL) AND (TAB =new_table_num ) AND (PERS_LINK = PERSON.LINK)
__________________
Эмо разработчик, сначала пишу код, потом плачу над его несовершенством. Подписывайтесь на мой блог, twitter и YouTube канал. Пользуйтесь моим Ultimate Workflow Toolkit |
|