Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bi-report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
data
bi-report
Commits
a84a56e4
Commit
a84a56e4
authored
Oct 15, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
2fbc19ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sign_daily.sql
pm/sign_daily/report/sign_daily.sql
+1
-1
No files found.
pm/sign_daily/report/sign_daily.sql
View file @
a84a56e4
...
...
@@ -4,6 +4,6 @@ SELECT day_id as `日期`
,
round
((
sum
(
CASE
WHEN
device_os_type
=
'android'
AND
user_type
=
'非首日签到用户'
THEN
wel_pv
END
)
/
sum
(
CASE
WHEN
device_os_type
=
'android'
and
user_type
=
'非首日签到用户'
THEN
active_num
END
))
/
(
sum
(
CASE
WHEN
device_os_type
=
'android'
THEN
wel_pv
END
)
/
sum
(
CASE
WHEN
device_os_type
=
'android'
THEN
active_num
END
)),
2
)
as
`单个android非首日签到贡献商品核心页PV/单个android老贡献商品核心页PV`
,
round
((
sum
(
CASE
WHEN
device_os_type
=
'android'
AND
user_type
=
'非首日签到用户'
THEN
clue_pv
END
)
/
sum
(
CASE
WHEN
device_os_type
=
'android'
AND
user_type
=
'非首日签到用户'
THEN
active_num
END
))
/
(
sum
(
CASE
WHEN
device_os_type
=
'android'
THEN
clue_pv
END
)
/
sum
(
CASE
WHEN
device_os_type
=
'android'
THEN
active_num
END
)),
2
)
as
`单个android非首日签到贡献有效线索人次/单个android老贡献有效线索人次`
FROM
pm
.
tl_pm_sign_deepaction_d
where
partition_day
in
(
'20200
901'
,
'202001001'
,
'20201101'
,
'20201201'
,
'2021010
1'
,
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
))
where
partition_day
in
(
'20200
831'
,
'20200930'
,
'20201031'
,
'20201130'
,
'2020123
1'
,
regexp_replace
(
date_sub
(
current_date
,
1
),
'-'
,
''
))
group
by
day_id
order
by
`日期`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment