Redian新闻
>
discover在amazon的5% cb是按照charged还是下单时间?
avatar
discover在amazon的5% cb是按照charged还是下单时间?# Money - 海外理财
e*0
1
take home assignment里的一道。由于我assigment做挂了,所以没机会知道反馈了。
想知道有什么好的写法。
table:
row_id - A unique id for the row
customer_id — A unique id for the loan borrower
loan_amount — The amount of the loan requested by the borrower
addr_state — Borrower's state of residence
问题:
Now let's rank the states by their top decile of loans to see where
customers borrow the most. Find the states where the cutoff for the top 10%
of loans (by loan amount requested) is the highest. If two states have the
same cut-off for the top decile, then please break ties by preferring the
state with the highest number of loans requested. Provide the list of the
top 10 states ranked in this manner as well as the total number of loans
requested in each state and the loan amount cut-off for the top decile of
loans.
多谢大家!
avatar
s*i
2
我年底下单,但是amazon很久才charge我钱,已经第二年了
这个满足5%吗?
avatar
A*e
3
没看懂问题。有示例么?

%

【在 e****0 的大作中提到】
: take home assignment里的一道。由于我assigment做挂了,所以没机会知道反馈了。
: 想知道有什么好的写法。
: table:
: row_id - A unique id for the row
: customer_id — A unique id for the loan borrower
: loan_amount — The amount of the loan requested by the borrower
: addr_state — Borrower's state of residence
: 问题:
: Now let's rank the states by their top decile of loans to see where
: customers borrow the most. Find the states where the cutoff for the top 10%

avatar
z*i
4
应该不行了

【在 s******i 的大作中提到】
: 我年底下单,但是amazon很久才charge我钱,已经第二年了
: 这个满足5%吗?

avatar
n*u
5
SELECT state, loan_amount
FROM (
SELECT t1.loan_amount, t1.state, t1.rank, t2.ct
FROM (
SELECT loan_amount, state, (CASE state WHEN @currState THEN @rownum:
= @rownum + 1 ELSE @rownum := 1 AND @currState=state END) + 1 as rank, @
ctnum:[email protected]+1 ac ct
FROM table t, (SELECT @rownum := 0, @currState := '', @ctnum:=0) r
ORDER BY state, loan_amount DESC
) t1 WHERE t1.rank = t1.ct * 0.1
) tt
order by tt.rank, tt.ct DESC
limit 10;
avatar
L*1
6
应该买egift card,很快就post了
avatar
l*4
7
charge时间,没戏了
被discover坑过几次了,以后注意不要在最后几天买。。
avatar
l*e
8
我12/23买的egift card,transaction很快就post了
但是一个point都没给我,更别说5%了
md,给他们发信也不回

【在 L**********1 的大作中提到】
: 应该买egift card,很快就post了
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。