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
dac7b619
Commit
dac7b619
authored
Nov 03, 2020
by
魏艺敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push codes
parent
ecc720c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
welfare_by_channel_uv.sql
pm/wel_clue_by_channel/report/welfare_by_channel_uv.sql
+3
-3
No files found.
pm/wel_clue_by_channel/report/welfare_by_channel_uv.sql
View file @
dac7b619
...
@@ -3,9 +3,9 @@ SELECT
...
@@ -3,9 +3,9 @@ SELECT
,
channel
as
`渠道`
,
channel
as
`渠道`
,
device_os_type
as
`平台`
,
device_os_type
as
`平台`
,
COUNT
(
DISTINCT
device
.
device_id
)
AS
`当天新活量`
,
COUNT
(
DISTINCT
device
.
device_id
)
AS
`当天新活量`
,
nvl
(
distinct
(
IF
(
pv
.
action_date
=
device
.
first_active_date
,
pv
.
cl_id
,
NULL
)),
0
)
AS
`当日商详页uv`
,
nvl
(
count
(
distinct
IF
(
pv
.
action_date
=
device
.
first_active_date
,
pv
.
cl_id
,
NULL
)),
0
)
AS
`当日商详页uv`
,
nvl
(
distinct
(
IF
(
pv
.
action_date
>=
device
.
first_active_date
AND
pv
.
action_date
<=
date_add
(
device
.
first_active_date
,
2
),
pv
.
cl_id
,
NULL
)),
0
)
AS
`3日内商详页uv`
,
nvl
(
count
(
distinct
IF
(
pv
.
action_date
>=
device
.
first_active_date
AND
pv
.
action_date
<=
date_add
(
device
.
first_active_date
,
2
),
pv
.
cl_id
,
NULL
)),
0
)
AS
`3日内商详页uv`
,
nvl
(
distinct
(
IF
(
pv
.
action_date
>=
device
.
first_active_date
AND
pv
.
action_date
<=
date_add
(
device
.
first_active_date
,
6
),
pv
.
cl_id
,
NULL
)),
0
)
AS
`7日内商详页uv`
,
nvl
(
count
(
distinct
IF
(
pv
.
action_date
>=
device
.
first_active_date
AND
pv
.
action_date
<=
date_add
(
device
.
first_active_date
,
6
),
pv
.
cl_id
,
NULL
)),
0
)
AS
`7日内商详页uv`
FROM
FROM
(
(
SELECT
SELECT
...
...
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