日期:2014-05-17 浏览次数:20453 次
select case when right(Talk_source5,13) like '%/index_%.html' then left(Talk_source5,LEN(Talk_source5)-13) else Talk_source5 end as Talk_source6,* from (
select case when right(Talk_source4,11)='/index.html' then left(Talk_source4,LEN(Talk_source4)-11) else Talk_source4 end as Talk_source5,* from (
select case when RIGHT(Talk_Source3,1)='/' then LEFT(Talk_Source3,LEN(Talk_Source3)-1) else Talk_Source3 end as Talk_source4,* from (
select LEFT(Talk_source2,case when (CHARINDEX('#',Talk_source2)-1)>0 then CHARINDEX('#',Talk_source2)-1 else len(Talk_Source2) end) as Talk_Source3,* from (
select LEFT(Talk_source,case when (CHARINDEX('?',Talk_source)-1)>0 then CHARINDEX('?',Talk_source)-1 else len(Talk_Source) end) as Talk_Source2,*
from Zoosnet_Data where Project_ID=1 and Talk_source!=''
and (Zoosnet_Visit_Start_Time between '2012-12-01 08:39:21' and '2013-8-29 8:39:20')
) as aaa ) as aaa )as aaa) as aaa