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
61812726
Commit
61812726
authored
Nov 03, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
70774155
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
data_by_day_old.sql
pm/daily_userpost/report/data_by_day_old.sql
+2
-1
detail_data_old.sql
pm/daily_userpost/report/detail_data_old.sql
+1
-1
key_data_old.sql
pm/daily_userpost/report/key_data_old.sql
+1
-1
No files found.
pm/daily_userpost/report/data_by_day_old.sql
View file @
61812726
...
@@ -8,7 +8,7 @@ SELECT partition_day as `日期`
...
@@ -8,7 +8,7 @@ SELECT partition_day as `日期`
,
nvl
(
concat
(
round
(
sum
(
click_pv
)
/
sum
(
exp_pv
)
*
100
,
2
),
'%'
),
0
)
as
`历史ctr`
,
nvl
(
concat
(
round
(
sum
(
click_pv
)
/
sum
(
exp_pv
)
*
100
,
2
),
'%'
),
0
)
as
`历史ctr`
,
nvl
(
concat
(
round
(
sum
(
page_pv_20s
)
/
sum
(
exp_pv
)
*
100
,
2
),
'%'
),
0
)
as
`历史优秀浏览点击ctr`
,
nvl
(
concat
(
round
(
sum
(
page_pv_20s
)
/
sum
(
exp_pv
)
*
100
,
2
),
'%'
),
0
)
as
`历史优秀浏览点击ctr`
,
nvl
(
round
(
avg
(
avg_page_stay
),
2
),
0
)
as
`历史平均阅读时长(s)`
,
nvl
(
round
(
avg
(
avg_page_stay
),
2
),
0
)
as
`历史平均阅读时长(s)`
FROM
pm
.
tl_pm_userpost_
d_v2
FROM
pm
.
tl_pm_userpost_
old_d_v3
where
partition_day
>=
'20201102'
where
partition_day
>=
'20201102'
group
by
partition_day
group
by
partition_day
order
by
`日期`
order
by
`日期`
\ No newline at end of file
pm/daily_userpost/report/detail_data_old.sql
View file @
61812726
...
@@ -54,7 +54,7 @@ SELECT post_id as `更美优选帖子id`
...
@@ -54,7 +54,7 @@ SELECT post_id as `更美优选帖子id`
,
nvl
(
favor_num
,
0
)
as
`历史收藏`
,
nvl
(
favor_num
,
0
)
as
`历史收藏`
,
nvl
(
share_num
,
0
)
as
`历史转发`
,
nvl
(
share_num
,
0
)
as
`历史转发`
,
nvl
(
avg_page_stay
,
0
)
as
`历史平均阅读时长(s)`
,
nvl
(
avg_page_stay
,
0
)
as
`历史平均阅读时长(s)`
FROM
pm
.
tl_pm_userpost_
d_v2
FROM
pm
.
tl_pm_userpost_
old_d_v3
where
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
where
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`前10日曝光`
desc
order
by
`前10日曝光`
desc
...
...
pm/daily_userpost/report/key_data_old.sql
View file @
61812726
...
@@ -20,7 +20,7 @@ SELECT post_id as `更美优选帖子id`
...
@@ -20,7 +20,7 @@ SELECT post_id as `更美优选帖子id`
,
nvl
(
exp_pv
,
0
)
as
`历史曝光`
,
nvl
(
exp_pv
,
0
)
as
`历史曝光`
,
nvl
(
page_pv
,
0
)
as
`历史浏览pv`
,
nvl
(
page_pv
,
0
)
as
`历史浏览pv`
,
nvl
(
avg_page_stay
,
0
)
as
`历史平均阅读时长(s)`
,
nvl
(
avg_page_stay
,
0
)
as
`历史平均阅读时长(s)`
FROM
pm
.
tl_pm_userpost_
d_v2
FROM
pm
.
tl_pm_userpost_
old_d_v3
where
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
where
partition_day
=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`前10日曝光`
desc
order
by
`前10日曝光`
desc
...
...
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