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
38e2a78f
Commit
38e2a78f
authored
Oct 20, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
2d0eff76
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
ai_content_by_month.sql
pm/daily_content/report/ai_content_by_month.sql
+1
-1
ai_content_detail.sql
pm/daily_content/report/ai_content_detail.sql
+2
-1
home_content_by_month.sql
pm/daily_content/report/home_content_by_month.sql
+1
-1
home_content_detail.sql
pm/daily_content/report/home_content_detail.sql
+2
-1
No files found.
pm/daily_content/report/ai_content_by_month.sql
View file @
38e2a78f
...
...
@@ -22,7 +22,7 @@ FROM
,
round
(
avg
(
ai_report_card_click_uv
),
0
)
as
ai_report_card_click_uv
,
round
(
avg
(
ai_report_card_click_pv
),
0
)
as
ai_report_card_click_pv
,
round
(
avg
(
ai_report_good_click
),
0
)
as
ai_report_good_click
FROM
pm
.
tl_pm_content_v
3
FROM
pm
.
tl_pm_content_v
2
where
partition_day
>=
'20201018'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
group
by
substr
(
day_id
,
1
,
6
),
device_os_type
,
active_type
,
channel
)
t1
...
...
pm/daily_content/report/ai_content_detail.sql
View file @
38e2a78f
...
...
@@ -11,6 +11,6 @@ SELECT
,
NVL
(
CONCAT
(
ROUND
(
ai_report_card_click_uv
/
ai_report_uv
*
100
,
2
),
'%'
),
0
)
AS
`ai结果页内容卡片点击uv/ai结果页uv`
,
NVL
(
CONCAT
(
ROUND
(
ai_report_card_click_pv
/
ai_report_uv
*
100
,
2
),
'%'
),
0
)
AS
`ai结果页内容卡片点击pv/ai结果页uv`
,
NVL
(
CONCAT
(
ROUND
(
ai_report_good_click
/
ai_report_uv
*
100
,
2
),
'%'
),
0
)
AS
`来源于ai结果页的good click/ai结果页uv`
FROM
pm
.
tl_pm_content_v
3
FROM
pm
.
tl_pm_content_v
2
where
partition_day
>=
'20201018'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`日期`
,
`系统`
,
`活跃`
,
`渠道`
\ No newline at end of file
pm/daily_content/report/home_content_by_month.sql
View file @
38e2a78f
...
...
@@ -28,7 +28,7 @@ FROM
,
round
(
avg
(
home_card_click_pv
),
0
)
as
home_card_click_pv
,
round
(
avg
(
home_good_click
),
0
)
as
home_good_click
,
round
(
avg
(
page_stay_per_device
),
2
)
as
page_stay_per_device
FROM
pm
.
tl_pm_content_v
3
FROM
pm
.
tl_pm_content_v
2
where
partition_day
>=
'20201018'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
group
by
substr
(
day_id
,
1
,
6
),
device_os_type
,
active_type
,
channel
)
t1
...
...
pm/daily_content/report/home_content_detail.sql
View file @
38e2a78f
...
...
@@ -14,6 +14,6 @@ SELECT
,
NVL
(
CONCAT
(
ROUND
(
home_card_click_pv
/
dau
*
100
,
2
),
'%'
),
0
)
AS
`首页卡片点击pv/DAU`
,
NVL
(
CONCAT
(
ROUND
(
home_good_click
/
dau
*
100
,
2
),
'%'
),
0
)
AS
`来源于首页的good click/DAU`
,
NVL
(
page_stay_per_device
,
0
)
AS
`单设备内容浏览时长(m)`
FROM
pm
.
tl_pm_content_v
3
FROM
pm
.
tl_pm_content_v
2
where
partition_day
>=
'20201018'
and
partition_day
<=
regexp_replace
(
DATE_SUB
(
current_date
,
1
)
,
'-'
,
''
)
order
by
`日期`
,
`系统`
,
`活跃`
,
`渠道`
\ No newline at end of file
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