Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tkdm
Project
Overview
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etl
tkdm
Commits
e7ae008f
Commit
e7ae008f
authored
8 years ago
by
mengdongxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tkdm_output_payment_explore_day.sql
parent
d3c31c2d
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tkdm_output_payment_explore_day.sql
tkdm_output_payment_explore_day.sql
+1
-2
No files found.
tkdm_output_payment_explore_day.sql
View file @
e7ae008f
...
...
@@ -28,8 +28,7 @@ from
else
3
end
as
rmb_level
,
sum
(
if
(
amt_payment
>
0
,
1
,
0
))
over
(
partition
by
deviceid
)
as
is_potential
from
tkdm
.
tkdm_base_active_payment_info
where
ds
=
'2017-02-25'
and
last_payment_ds
between
between
add_months
(
'2017-02-25'
,
-
6
)
and
'2017-02-25'
where
ds
=
'2017-02-25'
)
x
where
x
.
is_new_ins
=
1
group
by
x
.
appid
...
...
This diff is collapsed.
Click to expand it.
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