Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DECLARE @dt1 DATETIME = '20181116 00:00'
- DECLARE @dt2 DATETIME ='20181116 23:59'
- DECLARE @tm1 DATETIME = '19000101 22:00'
- DECLARE @tm2 DATETIME = '19000101 22:58'
- DECLARE @autoparam_05_operators TABLE
- (
- id UNIQUEIDENTIFIER
- )
- DECLARE @tasks TABLE
- (
- id UNIQUEIDENTIFIER
- )
- insert into @tasks
- select distinct id from oktell.dbo.A_TaskManager_Tasks
- /*
- Дата: 05.09.2018
- Изменил:Казанцев В.С.
- Изменения: 28.08.2018 - статус перерыв разбит на составляющие, добавлены исходящие, входящие, сумма. Добавлено время постобработки и ее среднее.
- 05.09.2018 - Поправлены входящие звонки (+условие без учета IVR), исправлены все исходящие. В разговоре разбит на state = 6 и время перед самим звонком с оператором,
- поле beforeTask.
- 20.11.2018 - Разговоры не по задаче - добавлена длительность всех исходящих звонков, совершенных оператором, когда он находился в статусе перерыв.
- 13.12.2018 - beforetask1 и 23 изменены исходные статусы.
- */
- declare @optemp table( [id] uniqueidentifier )
- insert into @optemp
- select * from @autoparam_05_operators
- if ( @@rowcount = 0 )
- insert into @autoparam_05_operators
- SELECT '5C614C90-8F16-4C4A-B299-F701EE05C713' -- id FROM [oktell_cc_temp].[dbo].[A_Cube_CC_Cat_OperatorInfo]
- select * into #taskstmp
- from @tasks
- if ( @@rowcount = 0 )
- insert into #taskstmp
- Select id
- FROM [oktell_cc_temp].[dbo].[A_Cube_CC_Cat_Task]
- declare @temp_talk table (idoperator uniqueidentifier, timetalk int)
- --------------------------------------------ИСХОДЯЩИЕ ЗВОНКИ, СОВЕРШЕННЫЕ В ПЕРЕРЫВАХ, ИДУТ ДОПОМ К РАЗГОВОРАМ НЕ ПО ЗАДАЧЕ------------------------------
- insert into @temp_talk
- select AUserId op,sum(datediff(second,TimeAnswer,TimeStop)) tm from oktell.dbo.A_Stat_Connections_1x1 sc with (nolock)
- inner join [oktell_cc_temp].[dbo].[A_Cube_CC_OperatorStates] os with (nolock) on os.IdOperator in (select * from @autoparam_05_operators) and sc.AUserId = os.IdOperator and sc.timestart between os.DateTimeStart and os.DateTimeStop
- and os.state = 9 --and cast(os.DateTimeStart as date) between @dt1 and @dt2 and cast(cast(os.DateTimeStart as time) as datetime) between @tm1 and @tm2
- where ConnectionType = 1
- and ReasonStart = 3
- and cast(sc.TimeStart as date) between @dt1 and @dt2 and cast(cast(sc.TimeStart as time) as datetime) between @tm1 and @tm2
- group by AUserId
- --select * from @temp_talk
- SELECT [idtask]
- ,[IdOperator]
- ,[State]
- ,icode
- ,[DateTimeStart] dtbegin
- ,[TimeStart]
- ,[DateTimeStop] dtend
- ,[LenTime]
- into #temp
- FROM [oktell_cc_temp].[dbo].[A_Cube_CC_OperatorStates]
- where datetimestart between @dt1 and @dt2
- and idoperator in (select * from @autoparam_05_operators)
- --select * from #temp
- ----------------------------------------------------------------
- ------- разбиваем промежутки охватывающие несколько дней -------
- ----------------------------------------------------------------
- insert into #temp
- select idtask
- ,[IdOperator]
- ,[State]
- ,icode
- ,dtbegin
- ,[TimeStart],
- cast (floor(cast(dtbegin as float)) + cast(@tm2 as float)
- as datetime),
- (cast(@tm2 as float ) - cast([TimeStart] as float) )*86400
- from #temp
- where datepart(dd,dtbegin)!= datepart(dd,dtend )
- insert into #temp
- select idtask
- ,[IdOperator]
- ,[State] ,icode,
- cast (floor(cast(dtEnd as float)) + cast(@tm1 as float)
- as datetime) ,
- @tm1,
- dtEnd,
- (cast(dtEnd as float) - floor(cast(dtEnd as float)) - cast(@tm1 as float)) *86400
- from #temp
- where datepart(dd,dtbegin)!= datepart(dd,dtend )
- --select * from #temp
- ----------------------------------------------------------------
- ------- разбиваем промежутки пересекающиеся с tm1 и tm2 --------
- ----------------------------------------------------------------
- insert into #temp
- select idtask
- ,[IdOperator]
- ,[State] ,icode,
- cast (floor(cast(dtbegin as float)) + cast(@tm1 as float)
- as datetime) ,
- @tm1,
- dtEnd,
- (cast(dtEnd as float) - floor(cast(dtbegin as float)) - cast(@tm1 as float)) *86400
- from #temp
- where
- [TimeStart]
- <
- cast(@tm1 as float)
- and
- cast(dtend as float) - floor(cast(dtend as float)) - cast(@tm1 as float)
- >
- 0.00001
- insert into #temp
- select idtask
- ,[IdOperator]
- ,[State],icode ,
- dtBegin,
- [TimeStart],
- cast (floor(cast(dtbegin as float)) + cast(@tm2 as float)
- as datetime),
- (floor(cast(dtbegin as float)) + cast(@tm2 as float) - cast(dtBegin as float)) *86400
- from #temp
- where
- cast(dtend as float) - floor(cast(dtend as float))- cast(@tm2 as float)
- >
- 0.00001
- and
- [TimeStart]
- <
- cast(@tm2 as float)
- order by dtbegin
- --select * from #temp
- --order by dtbegin
- ----------------------------------------------------------------
- -----------Удаляем промежутки которые тока что разбили----------
- ----------------------------------------------------------------
- delete from #temp
- where datepart(dd,dtbegin)!= datepart(dd,dtend )
- or
- cast(TimeStart as float)
- <
- cast(@tm1 as float)
- or
- cast(dtend as float) - floor(cast(dtend as float)) - cast(@tm2 as float)
- >
- 0.00001
- or
- [LenTime] < 0
- or [LenTime] is null
- --select * from #temp
- --order by dtbegin
- select oi.name,
- (cast(floor(task/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(task/60 - floor(task/3600)*60) < 10 then ('0'+ cast(floor(task/60 - floor(task/3600)*60) as nvarchar (10)))
- when floor(task/60 - floor(task/3600)*60) >= 10 then (cast(floor(task/60 - floor(task/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(task) - floor(task/60)*60 < 10 then ('0'+cast(floor(task) - floor(task/60)*60 as nvarchar (10)))
- when floor(task) - floor(task/60)*60 >= 10 then (cast(floor(task) - floor(task/60)*60 as nvarchar (10)))
- end taskLabel,
- round(task, 1) task,
- (cast(floor(beforetask/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(beforetask/60 - floor(beforetask/3600)*60) < 10 then ('0'+ cast(floor(beforetask/60 - floor(beforetask/3600)*60) as nvarchar (10)))
- when floor(beforetask/60 - floor(beforetask/3600)*60) >= 10 then (cast(floor(beforetask/60 - floor(beforetask/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(beforetask) - floor(beforetask/60)*60 < 10 then ('0'+cast(floor(beforetask) - floor(beforetask/60)*60 as nvarchar (10)))
- when floor(beforetask) - floor(beforetask/60)*60 >= 10 then (cast(floor(beforetask) - floor(beforetask/60)*60 as nvarchar (10)))
- end beforetaskLabel,
- round(beforetask, 1) beforetask,
- (cast(floor(post_len/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(post_len/60 - floor(post_len/3600)*60) < 10 then ('0'+ cast(floor(post_len/60 - floor(post_len/3600)*60) as nvarchar (10)))
- when floor(post_len/60 - floor(post_len/3600)*60) >= 10 then (cast(floor(post_len/60 - floor(post_len/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(post_len) - floor(post_len/60)*60 < 10 then ('0'+cast(floor(post_len) - floor(post_len/60)*60 as nvarchar (10)))
- when floor(post_len) - floor(post_len/60)*60 >= 10 then (cast(floor(post_len) - floor(post_len/60)*60 as nvarchar (10)))
- end post_lenLabel,
- round([post_len], 1)[post_len],
- (cast(floor(othtask/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(othtask/60 - floor(othtask/3600)*60) < 10 then ('0'+ cast(floor(othtask/60 - floor(othtask/3600)*60) as nvarchar (10)))
- when floor(othtask/60 - floor(othtask/3600)*60) >= 10 then (cast(floor(othtask/60 - floor(othtask/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(othtask) - floor(othtask/60)*60 < 10 then ('0'+cast(floor(othtask) - floor(othtask/60)*60 as nvarchar (10)))
- when floor(othtask) - floor(othtask/60)*60 >= 10 then (cast(floor(othtask) - floor(othtask/60)*60 as nvarchar (10)))
- end othtaskLabel,
- round(othtask, 1)othtask,
- (cast(floor(talk/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(talk/60 - floor(talk/3600)*60) < 10 then ('0'+ cast(floor(talk/60 - floor(talk/3600)*60) as nvarchar (10)))
- when floor(talk/60 - floor(talk/3600)*60) >= 10 then (cast(floor(talk/60 - floor(talk/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(talk) - floor(talk/60)*60 < 10 then ('0'+cast(floor(talk) - floor(talk/60)*60 as nvarchar (10)))
- when floor(talk) - floor(talk/60)*60 >= 10 then (cast(floor(talk) - floor(talk/60)*60 as nvarchar (10)))
- end talkLabel,
- round(talk, 1)talk,
- (cast(floor(ready/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(ready/60 - floor(ready/3600)*60) < 10 then ('0'+ cast(floor(ready/60 - floor(ready/3600)*60) as nvarchar (10)))
- when floor(ready/60 - floor(ready/3600)*60) >= 10 then (cast(floor(ready/60 - floor(ready/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(ready) - floor(ready/60)*60 < 10 then ('0'+cast(floor(ready) - floor(ready/60)*60 as nvarchar (10)))
- when floor(ready) - floor(ready/60)*60 >= 10 then (cast(floor(ready) - floor(ready/60)*60 as nvarchar (10)))
- end readyLabel,
- round([ready], 1)[ready],
- (cast(floor([break]/3600) as nvarchar (10)))
- + ':' +
- case
- when floor([break]/60 - floor([break]/3600)*60) < 10 then ('0'+ cast(floor([break]/60 - floor([break]/3600)*60) as nvarchar (10)))
- when floor([break]/60 - floor([break]/3600)*60) >= 10 then (cast(floor([break]/60 - floor([break]/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor([break]) - floor([break]/60)*60 < 10 then ('0'+cast(floor([break]) - floor([break]/60)*60 as nvarchar (10)))
- when floor([break]) - floor([break]/60)*60 >= 10 then (cast(floor([break]) - floor([break]/60)*60 as nvarchar (10)))
- end [breakLabel],
- round([break], 1) [break],
- (cast(floor([dispatch]/3600) as nvarchar (10)))
- + ':' +
- case
- when floor([dispatch]/60 - floor([dispatch]/3600)*60) < 10 then ('0'+ cast(floor([dispatch]/60 - floor([dispatch]/3600)*60) as nvarchar (10)))
- when floor([dispatch]/60 - floor([dispatch]/3600)*60) >= 10 then (cast(floor([dispatch]/60 - floor([dispatch]/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor([dispatch]) - floor([dispatch]/60)*60 < 10 then ('0'+cast(floor([dispatch]) - floor([dispatch]/60)*60 as nvarchar (10)))
- when floor([dispatch]) - floor([dispatch]/60)*60 >= 10 then (cast(floor([dispatch]) - floor([dispatch]/60)*60 as nvarchar (10)))
- end [dispatchLabel],
- round([dispatch], 1)[dispatch],
- (cast(floor([tickets]/3600) as nvarchar (10)))
- + ':' +
- case
- when floor([tickets]/60 - floor([tickets]/3600)*60) < 10 then ('0'+ cast(floor([tickets]/60 - floor([tickets]/3600)*60) as nvarchar (10)))
- when floor([tickets]/60 - floor([tickets]/3600)*60) >= 10 then (cast(floor([tickets]/60 - floor([tickets]/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor([tickets]) - floor([tickets]/60)*60 < 10 then ('0'+cast(floor([tickets]) - floor([tickets]/60)*60 as nvarchar (10)))
- when floor([tickets]) - floor([tickets]/60)*60 >= 10 then (cast(floor([tickets]) - floor([tickets]/60)*60 as nvarchar (10)))
- end [ticketsLabel],
- round([tickets], 1)[tickets],
- (cast(floor(chat/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(chat/60 - floor(chat/3600)*60) < 10 then ('0'+ cast(floor(chat/60 - floor(chat/3600)*60) as nvarchar (10)))
- when floor(chat/60 - floor(chat/3600)*60) >= 10 then (cast(floor(chat/60 - floor(chat/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(chat) - floor(chat/60)*60 < 10 then ('0'+cast(floor(chat) - floor(chat/60)*60 as nvarchar (10)))
- when floor(chat) - floor(chat/60)*60 >= 10 then (cast(floor(chat) - floor(chat/60)*60 as nvarchar (10)))
- end chatLabel,
- round([chat], 1)[chat],
- (cast(floor([other]/3600) as nvarchar (10)))
- + ':' +
- case
- when floor([other]/60 - floor([other]/3600)*60) < 10 then ('0'+ cast(floor([other]/60 - floor([other]/3600)*60) as nvarchar (10)))
- when floor([other]/60 - floor([other]/3600)*60) >= 10 then (cast(floor([other]/60 - floor([other]/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor([other]) - floor([other]/60)*60 < 10 then ('0'+cast(floor([other]) - floor([other]/60)*60 as nvarchar (10)))
- when floor([other]) - floor([other]/60)*60 >= 10 then (cast(floor([other]) - floor([other]/60)*60 as nvarchar (10)))
- end [otherLabel],
- round([other], 1) [other],
- (cast(floor([refunds]/3600) as nvarchar (10)))
- + ':' +
- case
- when floor([refunds]/60 - floor([refunds]/3600)*60) < 10 then ('0'+ cast(floor([refunds]/60 - floor([refunds]/3600)*60) as nvarchar (10)))
- when floor([refunds]/60 - floor([refunds]/3600)*60) >= 10 then (cast(floor([refunds]/60 - floor([refunds]/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor([refunds]) - floor([refunds]/60)*60 < 10 then ('0'+cast(floor([refunds]) - floor([refunds]/60)*60 as nvarchar (10)))
- when floor([refunds]) - floor([refunds]/60)*60 >= 10 then (cast(floor([refunds]) - floor([refunds]/60)*60 as nvarchar (10)))
- end [refundsLabel],
- round([refunds], 1) [refunds],
- (cast(floor([training]/3600) as nvarchar (10)))
- + ':' +
- case
- when floor([training]/60 - floor([training]/3600)*60) < 10 then ('0'+ cast(floor([training]/60 - floor([training]/3600)*60) as nvarchar (10)))
- when floor([training]/60 - floor([training]/3600)*60) >= 10 then (cast(floor([training]/60 - floor([training]/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor([training]) - floor([training]/60)*60 < 10 then ('0'+cast(floor([training]) - floor([training]/60)*60 as nvarchar (10)))
- when floor([training]) - floor([training]/60)*60 >= 10 then (cast(floor([training]) - floor([training]/60)*60 as nvarchar (10)))
- end [trainingLabel],
- round([training], 1) [training],
- (cast(floor([tech]/3600) as nvarchar (10)))
- + ':' +
- case
- when floor([tech]/60 - floor([tech]/3600)*60) < 10 then ('0'+ cast(floor([tech]/60 - floor([tech]/3600)*60) as nvarchar (10)))
- when floor([tech]/60 - floor([tech]/3600)*60) >= 10 then (cast(floor([tech]/60 - floor([tech]/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor([tech]) - floor([tech]/60)*60 < 10 then ('0'+cast(floor([tech]) - floor([tech]/60)*60 as nvarchar (10)))
- when floor([tech]) - floor([tech]/60)*60 >= 10 then (cast(floor([tech]) - floor([tech]/60)*60 as nvarchar (10)))
- end [techLabel],
- round([tech], 1)[tech],
- round(task+beforetask+[post_len]+othtask+talk+[ready]+[break]+[dispatch]+[tickets]+[chat]+[other]+[refunds]+[training]+[tech]-isnull((select timetalk from @temp_talk where idoperator = tt.IdOperator),0),1) [sum_status], --за вычетом времени исходящих звонков, совершенных в перерыве
- isnull(oktell.dbo.GetTimeFromSecond(task+beforetask+[post_len]+othtask+talk+[ready]+[break]+[dispatch]+[tickets]+[chat]+[other]+[refunds]+[training]+[tech]-isnull((select timetalk from @temp_talk where idoperator = tt.IdOperator),0)),0) [sum_statLabel], --за вычетом времени исходящих звонков, совершенных в перерыве
- incoming,
- outcomingcalls,
- incoming+outcomingcalls as sum,
- (cast(floor(avgpost/3600) as nvarchar (10)))
- + ':' +
- case
- when floor(avgpost/60 - floor(avgpost/3600)*60) < 10 then ('0'+ cast(floor(avgpost/60 - floor(avgpost/3600)*60) as nvarchar (10)))
- when floor(avgpost/60 - floor(avgpost/3600)*60) >= 10 then (cast(floor(avgpost/60 - floor(avgpost/3600)*60) as nvarchar (10)))
- end + ':' +
- case
- when floor(avgpost) - floor(avgpost/60)*60 < 10 then ('0'+cast(floor(avgpost) - floor(avgpost/60)*60 as nvarchar (10)))
- when floor(avgpost) - floor(avgpost/60)*60 >= 10 then (cast(floor(avgpost) - floor(avgpost/60)*60 as nvarchar (10)))
- end avgpostLabel,
- round([avgpost], 1)[avgpost]
- from (
- SELECT os.[IdOperator],
- [cc] = sum(lentime),
- [beforetask] = isnull(
- (select sum(lentime)
- from #temp
- where State in (1,2,3)
- and idtask in (select * from #taskstmp )
- and [IdOperator] = os.[IdOperator])
- , 0),
- [task] = isnull(
- (select sum(lentime)
- from #temp
- where State in (6)
- and idtask in (select * from #taskstmp )
- and [IdOperator] = os.[IdOperator])
- , 0),
- [othtask] = isnull(
- (select sum(lentime)
- from #temp
- where State in (1,2,3,4,6,7 )
- and idtask not in (select * from #taskstmp )
- and [IdOperator] = os.[IdOperator])
- , 0),
- [ready] = isnull(
- (select sum(lentime)
- from #temp
- where State = 10
- and [IdOperator] = os.[IdOperator])
- , 0),
- [talk] = isnull(
- (select sum(lentime)
- from #temp
- where State in (5,8)
- and [IdOperator] = os.[IdOperator])
- , 0)+isnull((select timetalk from @temp_talk where idoperator = os.IdOperator),0),
- [break] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 0
- and [IdOperator] = os.[IdOperator])
- , 0),
- [dispatch] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 1
- and [IdOperator] = os.[IdOperator])
- , 0) ,
- [tickets] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 2
- and [IdOperator] = os.[IdOperator])
- , 0) ,
- [chat] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 3
- and [IdOperator] = os.[IdOperator])
- , 0) ,
- [other] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 4
- and [IdOperator] = os.[IdOperator])
- , 0),
- [refunds] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 6
- and [IdOperator] = os.[IdOperator])
- , 0),
- [training] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 7
- and [IdOperator] = os.[IdOperator])
- , 0),
- [tech] = isnull(
- (select sum(lentime)
- from #temp
- where State = 9 and icode = 8
- and [IdOperator] = os.[IdOperator])
- , 0),
- post_len = isnull(
- (select sum(lentime)
- from #temp
- where State = 7
- and [IdOperator] = os.[IdOperator])
- , 0),
- cast(isnull((select count(distinct idchain) from oktell_cc_temp.dbo.A_Cube_CC_EffortConnections with(nolock)
- where datetimestart between @dt1 and @dt2 and timestart between @tm1 and @tm2 and IdOperator=os.IdOperator and idtask in (select id from @tasks) and blinenum<>'IVR' and IsOutput=0),0) as nvarchar(200)) incoming,
- isnull((select count (distinct idchain) from oktell.dbo.A_Stat_Connections_1x1 sc where
- sc.TimeStart between @dt1 and @dt2
- and cast(CAST(sc.TimeStart as time(0))as datetime) between @tm1 and @tm2
- and IsRecorded = 1
- and ConnectionType in (1)
- and sc.AUserId=os.IdOperator),0) outcomingcalls,
- /*cast(isnull((select count(distinct idchain) from oktell_cc_temp.dbo.A_Cube_CC_EffortConnections with(NOlock)
- where datetimestart between @dt1 and @dt2 and timestart between @tm1 and @tm2 and IdOperator=os.IdOperator/* and idtask in (select id from @tasks) and blinenum<>'IVR'*/ and IsOutput=1),0) as nvarchar(200)) outcomingcalls,
- */
- /*
- cast(isnull((select count(distinct idchain) from oktell_cc_temp.dbo.A_Cube_CC_EffortConnections with(NOlock)
- where datetimestart between @dt1 and @dt2 and timestart between @tm1 and @tm2 and IdOperator=os.IdOperator and idtask in (select id from @tasks) and blinenum<>'IVR' ),0) as nvarchar(200)) sumallcalls,*/
- case when isnull(
- (select sum(lentime)
- from #temp
- where State = 7
- and [IdOperator] = os.[IdOperator])
- , 0) = 0 or (isnull((select count(distinct idchain) from oktell_cc_temp.dbo.A_Cube_CC_EffortConnections with(NOlock)
- where datetimestart between @dt1 and @dt2 and timestart between @tm1 and @tm2 and IdOperator=os.IdOperator and blinenum<>'IVR' and idtask in (select id from @tasks) and IsOutput=0),0)) = 0 then 0
- else isnull(
- (select sum(lentime)
- from #temp
- where State = 7
- and [IdOperator] = os.[IdOperator])
- , 0)/(isnull((select count(distinct idchain) from oktell_cc_temp.dbo.A_Cube_CC_EffortConnections with(NOlock)
- where datetimestart between @dt1 and @dt2 and timestart between @tm1 and @tm2 and IdOperator=os.IdOperator and blinenum<>'IVR' and idtask in (select id from @tasks) and IsOutput=0),0) ) end avgpost
- FROM #temp os
- group by os.[IdOperator]
- )tt
- inner join
- oktell_cc_temp.dbo.A_Cube_CC_Cat_OperatorInfo oi
- on oi.id = tt.[IdOperator]
- drop table #temp
- drop table #taskstmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement