{"id":76768,"date":"2022-08-30T13:39:53","date_gmt":"2022-08-30T05:39:53","guid":{"rendered":"https:\/\/www.growthhk.cn\/?p=76768"},"modified":"2022-08-30T13:39:53","modified_gmt":"2022-08-30T05:39:53","slug":"%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0-rfm%e6%a8%a1%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.growthhk.cn\/quan\/76768.html","title":{"rendered":"\u5b66\u4e60\u7b14\u8bb0 – RFM\u6a21\u578b"},"content":{"rendered":"\n
RFM<\/a><\/span>\u6a21\u578b\u662f\u4e92\u8054\u7f51\u8861\u91cf\u5f53\u524d\u7528\u6237\u4ef7\u503c\u548c\u5ba2\u6237\u6f5c\u5728\u4ef7\u503c\u7684\u91cd\u8981\u5de5\u5177\u548c\u624b\u6bb5\u3002RFM\u662fRencency\uff08\u6700\u8fd1\u4e00\u6b21\u6d88\u8d39\uff09\uff0cFrequency\uff08\u6d88\u8d39\u9891\u7387\uff09\u3001Monetary\uff08\u6d88\u8d39\u91d1\u989d\uff09\uff0c\u4e09\u4e2a\u6307\u6807\u9996\u5b57\u6bcd\u7ec4\u5408\u3002<\/p>\n\n\n\n\u672c\u6b21\u6570\u636e\u4e2d\u901a\u8fc7\u6700\u8fd1\u6d88\u8d39\uff08R\uff09\u548c\u6d88\u8d39\u9891\u7387\uff08F\uff09\u5efa\u2f74RFM\u6a21\u578b\uff1a<\/p>\n\n\n\n\u91cd\u8981\u2fbc\u4ef7\u503c\u5ba2\u6237\uff1a\u6307\u6700\u8fd1\u2f00\u6b21\u6d88\u8d39\u8f83\u8fd1\u2f7d\u4e14\u6d88\u8d39\u9891\u7387\u8f83\u2fbc\u7684\u5ba2\u6237\uff1b<\/li>\u91cd\u8981\u5524\u56de\u5ba2\u6237\uff1a\u6307\u6700\u8fd1\u2f00\u6b21\u6d88\u8d39\u8f83\u8fdc\u4e14\u6d88\u8d39\u9891\u7387\u8f83\u2fbc\u7684\u5ba2\u6237\uff1b<\/li>\u91cd\u8981\u6df1\u8015\u5ba2\u6237\uff1a\u6307\u6700\u8fd1\u2f00\u6b21\u6d88\u8d39\u8f83\u8fd1\u4e14\u6d88\u8d39\u9891\u7387\u8f83\u4f4e\u7684\u5ba2\u6237\uff1b<\/li>\u91cd\u8981\u633d\u7559\u5ba2\u6237\uff1a\u6307\u6700\u8fd1\u2f00\u6b21\u6d88\u8d39\u8f83\u8fdc\u4e14\u6d88\u8d39\u9891\u7387\u8f83\u4f4e\u7684\u5ba2\u6237\uff1b<\/li><\/ul>\n\n\n\n<\/figure><\/div>\n\n\n1 R\u8ba1\u7b97<\/p>\n\n\n\n-- \u83b7\u53d6\u7528\u6237\u6700\u8fd1\u7684\u8d2d\u4e70\u65f6\u95f4<\/em>create view user_recency asselect user_id,max(dates) recent_buy_time from temp_trade where behavior_type ='2' group by user_id<\/code><\/pre>\n\n\n\n-- \u8ba1\u7b97\u6bcf\u4e2a\u7528\u6237\u7684\u6700\u8fd1\u8d2d\u4e70\u65f6\u95f4\u4e0e2019-12-18\u76f8\u5dee\u51e0\u5929\uff0c\u5e76\u6839\u636e\u5929\u6570\u7ed9\u4e88\u5206\u6570<\/em>create view r_level asselect user_id,recent_buy_time,datediff('2019-12-18',recent_buy_time),case when datediff('2019-12-18',recent_buy_time)<'2' then '5' when datediff('2019-12-18',recent_buy_time)<='4' then '4' when datediff('2019-12-18',recent_buy_time)<='6' then '3' when datediff('2019-12-18',recent_buy_time)<='8' then '2' else '1' end as r_value from user_recency order by recent_buy_time <\/code><\/pre>\n\n\n\n2 F\u8ba1\u7b97<\/h4>\n\n\n\n-- \u83b7\u53d6\u7528\u6237\u8d2d\u4e70\u6b21\u6570\ncreate view user_buy_frequency as\nselect user_id,count(behavior_type) buy_frequency from temp_trade where behavior_type ='2' group by user_id\n\n-- \u5bf9\u8d2d\u4e70\u6b21\u6570\u8fdb\u884c\u6253\u5206\ncreate view f_level as\nselect user_id,buy_frenquecy,\n(case \nwhen buy_frenquecy<=2 then 1\nwhen buy_frenquecy<=4 then 2\nwhen buy_frenquecy<=6 then 3\nwhen buy_frenquecy<=8 then 4\nelse 5 end) f_value\nfrom user_buy_frequency<\/code><\/pre>\n\n\n\n3 \u6574\u5408<\/p>\n\n\n\n-- R\u4e0eF\u6574\u5408\u5206\u7c7b\u7528\u6237\nselect avg(r_value) r_avg from r_level; -- 2.7939\nselect avg(f_value) f_avg from f_level; -- 2.2606\nselect r.user_id,r.r_value,f_value,\n(case\nwhen r.r_value>2.7939 and f.f_value>2.266 then '\u91cd\u8981\u4ef7\u503c\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value>2.266 then '\u91cd\u8981\u5524\u56de\u5ba2\u6237'\nwhen r.r_value>2.7939 and f.f_value<2.266 then '\u91cd\u8981\u6df1\u8015\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value<2.266 then '\u91cd\u8981\u633d\u7559\u5ba2\u6237'\nend) r_f_value -- \u6ca1\u6709\u5176\u4ed6\u7ed3\u679c\u65f6\uff0c\u5c31\u4e0d\u52a0else\n\nfrom r_level r inner join f_level f on r.user_id=f.user_id<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"RFM\u6a21\u578b\u662f\u4e92\u8054\u7f51\u8861\u91cf\u5f53\u524d\u7528\u6237\u4ef7\u503c\u548c\u5ba2\u6237\u6f5c\u5728\u4ef7\u503c\u7684\u91cd\u8981\u5de5\u5177\u548c\u624b\u6bb5\u3002RFM\u662fRencency\uff08\u6700\u8fd1\u4e00\u6b21\u6d88\u8d39\uff09\uff0cFrequency\uff08\u6d88\u8d39\u9891\u7387\uff09\u3001Monetary\uff08\u6d88\u8d39\u91d1\u989d\uff09\uff0c\u4e09\u4e2a\u6307\u6807\u9996\u2026<\/p>\n","protected":false},"author":91,"featured_media":44472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2036],"tags":[4373],"special":[],"class_list":["post-76768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quan","tag-rfm","entry"],"views":68373,"_links":{"self":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/comments?post=76768"}],"version-history":[{"count":0,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media\/44472"}],"wp:attachment":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media?parent=76768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/categories?post=76768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/tags?post=76768"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/special?post=76768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\u672c\u6b21\u6570\u636e\u4e2d\u901a\u8fc7\u6700\u8fd1\u6d88\u8d39\uff08R\uff09\u548c\u6d88\u8d39\u9891\u7387\uff08F\uff09\u5efa\u2f74RFM\u6a21\u578b\uff1a<\/p>\n\n\n\n
1 R\u8ba1\u7b97<\/p>\n\n\n\n
-- \u83b7\u53d6\u7528\u6237\u6700\u8fd1\u7684\u8d2d\u4e70\u65f6\u95f4<\/em>create view user_recency asselect user_id,max(dates) recent_buy_time from temp_trade where behavior_type ='2' group by user_id<\/code><\/pre>\n\n\n\n-- \u8ba1\u7b97\u6bcf\u4e2a\u7528\u6237\u7684\u6700\u8fd1\u8d2d\u4e70\u65f6\u95f4\u4e0e2019-12-18\u76f8\u5dee\u51e0\u5929\uff0c\u5e76\u6839\u636e\u5929\u6570\u7ed9\u4e88\u5206\u6570<\/em>create view r_level asselect user_id,recent_buy_time,datediff('2019-12-18',recent_buy_time),case when datediff('2019-12-18',recent_buy_time)<'2' then '5' when datediff('2019-12-18',recent_buy_time)<='4' then '4' when datediff('2019-12-18',recent_buy_time)<='6' then '3' when datediff('2019-12-18',recent_buy_time)<='8' then '2' else '1' end as r_value from user_recency order by recent_buy_time <\/code><\/pre>\n\n\n\n2 F\u8ba1\u7b97<\/h4>\n\n\n\n-- \u83b7\u53d6\u7528\u6237\u8d2d\u4e70\u6b21\u6570\ncreate view user_buy_frequency as\nselect user_id,count(behavior_type) buy_frequency from temp_trade where behavior_type ='2' group by user_id\n\n-- \u5bf9\u8d2d\u4e70\u6b21\u6570\u8fdb\u884c\u6253\u5206\ncreate view f_level as\nselect user_id,buy_frenquecy,\n(case \nwhen buy_frenquecy<=2 then 1\nwhen buy_frenquecy<=4 then 2\nwhen buy_frenquecy<=6 then 3\nwhen buy_frenquecy<=8 then 4\nelse 5 end) f_value\nfrom user_buy_frequency<\/code><\/pre>\n\n\n\n3 \u6574\u5408<\/p>\n\n\n\n-- R\u4e0eF\u6574\u5408\u5206\u7c7b\u7528\u6237\nselect avg(r_value) r_avg from r_level; -- 2.7939\nselect avg(f_value) f_avg from f_level; -- 2.2606\nselect r.user_id,r.r_value,f_value,\n(case\nwhen r.r_value>2.7939 and f.f_value>2.266 then '\u91cd\u8981\u4ef7\u503c\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value>2.266 then '\u91cd\u8981\u5524\u56de\u5ba2\u6237'\nwhen r.r_value>2.7939 and f.f_value<2.266 then '\u91cd\u8981\u6df1\u8015\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value<2.266 then '\u91cd\u8981\u633d\u7559\u5ba2\u6237'\nend) r_f_value -- \u6ca1\u6709\u5176\u4ed6\u7ed3\u679c\u65f6\uff0c\u5c31\u4e0d\u52a0else\n\nfrom r_level r inner join f_level f on r.user_id=f.user_id<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"RFM\u6a21\u578b\u662f\u4e92\u8054\u7f51\u8861\u91cf\u5f53\u524d\u7528\u6237\u4ef7\u503c\u548c\u5ba2\u6237\u6f5c\u5728\u4ef7\u503c\u7684\u91cd\u8981\u5de5\u5177\u548c\u624b\u6bb5\u3002RFM\u662fRencency\uff08\u6700\u8fd1\u4e00\u6b21\u6d88\u8d39\uff09\uff0cFrequency\uff08\u6d88\u8d39\u9891\u7387\uff09\u3001Monetary\uff08\u6d88\u8d39\u91d1\u989d\uff09\uff0c\u4e09\u4e2a\u6307\u6807\u9996\u2026<\/p>\n","protected":false},"author":91,"featured_media":44472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2036],"tags":[4373],"special":[],"class_list":["post-76768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quan","tag-rfm","entry"],"views":68373,"_links":{"self":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/comments?post=76768"}],"version-history":[{"count":0,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media\/44472"}],"wp:attachment":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media?parent=76768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/categories?post=76768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/tags?post=76768"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/special?post=76768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
-- \u8ba1\u7b97\u6bcf\u4e2a\u7528\u6237\u7684\u6700\u8fd1\u8d2d\u4e70\u65f6\u95f4\u4e0e2019-12-18\u76f8\u5dee\u51e0\u5929\uff0c\u5e76\u6839\u636e\u5929\u6570\u7ed9\u4e88\u5206\u6570<\/em>create view r_level asselect user_id,recent_buy_time,datediff('2019-12-18',recent_buy_time),case when datediff('2019-12-18',recent_buy_time)<'2' then '5' when datediff('2019-12-18',recent_buy_time)<='4' then '4' when datediff('2019-12-18',recent_buy_time)<='6' then '3' when datediff('2019-12-18',recent_buy_time)<='8' then '2' else '1' end as r_value from user_recency order by recent_buy_time <\/code><\/pre>\n\n\n\n2 F\u8ba1\u7b97<\/h4>\n\n\n\n-- \u83b7\u53d6\u7528\u6237\u8d2d\u4e70\u6b21\u6570\ncreate view user_buy_frequency as\nselect user_id,count(behavior_type) buy_frequency from temp_trade where behavior_type ='2' group by user_id\n\n-- \u5bf9\u8d2d\u4e70\u6b21\u6570\u8fdb\u884c\u6253\u5206\ncreate view f_level as\nselect user_id,buy_frenquecy,\n(case \nwhen buy_frenquecy<=2 then 1\nwhen buy_frenquecy<=4 then 2\nwhen buy_frenquecy<=6 then 3\nwhen buy_frenquecy<=8 then 4\nelse 5 end) f_value\nfrom user_buy_frequency<\/code><\/pre>\n\n\n\n3 \u6574\u5408<\/p>\n\n\n\n-- R\u4e0eF\u6574\u5408\u5206\u7c7b\u7528\u6237\nselect avg(r_value) r_avg from r_level; -- 2.7939\nselect avg(f_value) f_avg from f_level; -- 2.2606\nselect r.user_id,r.r_value,f_value,\n(case\nwhen r.r_value>2.7939 and f.f_value>2.266 then '\u91cd\u8981\u4ef7\u503c\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value>2.266 then '\u91cd\u8981\u5524\u56de\u5ba2\u6237'\nwhen r.r_value>2.7939 and f.f_value<2.266 then '\u91cd\u8981\u6df1\u8015\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value<2.266 then '\u91cd\u8981\u633d\u7559\u5ba2\u6237'\nend) r_f_value -- \u6ca1\u6709\u5176\u4ed6\u7ed3\u679c\u65f6\uff0c\u5c31\u4e0d\u52a0else\n\nfrom r_level r inner join f_level f on r.user_id=f.user_id<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"RFM\u6a21\u578b\u662f\u4e92\u8054\u7f51\u8861\u91cf\u5f53\u524d\u7528\u6237\u4ef7\u503c\u548c\u5ba2\u6237\u6f5c\u5728\u4ef7\u503c\u7684\u91cd\u8981\u5de5\u5177\u548c\u624b\u6bb5\u3002RFM\u662fRencency\uff08\u6700\u8fd1\u4e00\u6b21\u6d88\u8d39\uff09\uff0cFrequency\uff08\u6d88\u8d39\u9891\u7387\uff09\u3001Monetary\uff08\u6d88\u8d39\u91d1\u989d\uff09\uff0c\u4e09\u4e2a\u6307\u6807\u9996\u2026<\/p>\n","protected":false},"author":91,"featured_media":44472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2036],"tags":[4373],"special":[],"class_list":["post-76768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quan","tag-rfm","entry"],"views":68373,"_links":{"self":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/comments?post=76768"}],"version-history":[{"count":0,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media\/44472"}],"wp:attachment":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media?parent=76768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/categories?post=76768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/tags?post=76768"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/special?post=76768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
-- \u83b7\u53d6\u7528\u6237\u8d2d\u4e70\u6b21\u6570\ncreate view user_buy_frequency as\nselect user_id,count(behavior_type) buy_frequency from temp_trade where behavior_type ='2' group by user_id\n\n-- \u5bf9\u8d2d\u4e70\u6b21\u6570\u8fdb\u884c\u6253\u5206\ncreate view f_level as\nselect user_id,buy_frenquecy,\n(case \nwhen buy_frenquecy<=2 then 1\nwhen buy_frenquecy<=4 then 2\nwhen buy_frenquecy<=6 then 3\nwhen buy_frenquecy<=8 then 4\nelse 5 end) f_value\nfrom user_buy_frequency<\/code><\/pre>\n\n\n\n3 \u6574\u5408<\/p>\n\n\n\n-- R\u4e0eF\u6574\u5408\u5206\u7c7b\u7528\u6237\nselect avg(r_value) r_avg from r_level; -- 2.7939\nselect avg(f_value) f_avg from f_level; -- 2.2606\nselect r.user_id,r.r_value,f_value,\n(case\nwhen r.r_value>2.7939 and f.f_value>2.266 then '\u91cd\u8981\u4ef7\u503c\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value>2.266 then '\u91cd\u8981\u5524\u56de\u5ba2\u6237'\nwhen r.r_value>2.7939 and f.f_value<2.266 then '\u91cd\u8981\u6df1\u8015\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value<2.266 then '\u91cd\u8981\u633d\u7559\u5ba2\u6237'\nend) r_f_value -- \u6ca1\u6709\u5176\u4ed6\u7ed3\u679c\u65f6\uff0c\u5c31\u4e0d\u52a0else\n\nfrom r_level r inner join f_level f on r.user_id=f.user_id<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"RFM\u6a21\u578b\u662f\u4e92\u8054\u7f51\u8861\u91cf\u5f53\u524d\u7528\u6237\u4ef7\u503c\u548c\u5ba2\u6237\u6f5c\u5728\u4ef7\u503c\u7684\u91cd\u8981\u5de5\u5177\u548c\u624b\u6bb5\u3002RFM\u662fRencency\uff08\u6700\u8fd1\u4e00\u6b21\u6d88\u8d39\uff09\uff0cFrequency\uff08\u6d88\u8d39\u9891\u7387\uff09\u3001Monetary\uff08\u6d88\u8d39\u91d1\u989d\uff09\uff0c\u4e09\u4e2a\u6307\u6807\u9996\u2026<\/p>\n","protected":false},"author":91,"featured_media":44472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2036],"tags":[4373],"special":[],"class_list":["post-76768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quan","tag-rfm","entry"],"views":68373,"_links":{"self":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/comments?post=76768"}],"version-history":[{"count":0,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media\/44472"}],"wp:attachment":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media?parent=76768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/categories?post=76768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/tags?post=76768"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/special?post=76768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
3 \u6574\u5408<\/p>\n\n\n\n
-- R\u4e0eF\u6574\u5408\u5206\u7c7b\u7528\u6237\nselect avg(r_value) r_avg from r_level; -- 2.7939\nselect avg(f_value) f_avg from f_level; -- 2.2606\nselect r.user_id,r.r_value,f_value,\n(case\nwhen r.r_value>2.7939 and f.f_value>2.266 then '\u91cd\u8981\u4ef7\u503c\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value>2.266 then '\u91cd\u8981\u5524\u56de\u5ba2\u6237'\nwhen r.r_value>2.7939 and f.f_value<2.266 then '\u91cd\u8981\u6df1\u8015\u5ba2\u6237'\nwhen r.r_value<2.7939 and f.f_value<2.266 then '\u91cd\u8981\u633d\u7559\u5ba2\u6237'\nend) r_f_value -- \u6ca1\u6709\u5176\u4ed6\u7ed3\u679c\u65f6\uff0c\u5c31\u4e0d\u52a0else\n\nfrom r_level r inner join f_level f on r.user_id=f.user_id<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"RFM\u6a21\u578b\u662f\u4e92\u8054\u7f51\u8861\u91cf\u5f53\u524d\u7528\u6237\u4ef7\u503c\u548c\u5ba2\u6237\u6f5c\u5728\u4ef7\u503c\u7684\u91cd\u8981\u5de5\u5177\u548c\u624b\u6bb5\u3002RFM\u662fRencency\uff08\u6700\u8fd1\u4e00\u6b21\u6d88\u8d39\uff09\uff0cFrequency\uff08\u6d88\u8d39\u9891\u7387\uff09\u3001Monetary\uff08\u6d88\u8d39\u91d1\u989d\uff09\uff0c\u4e09\u4e2a\u6307\u6807\u9996\u2026<\/p>\n","protected":false},"author":91,"featured_media":44472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2036],"tags":[4373],"special":[],"class_list":["post-76768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quan","tag-rfm","entry"],"views":68373,"_links":{"self":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/comments?post=76768"}],"version-history":[{"count":0,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media\/44472"}],"wp:attachment":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media?parent=76768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/categories?post=76768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/tags?post=76768"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/special?post=76768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
RFM\u6a21\u578b\u662f\u4e92\u8054\u7f51\u8861\u91cf\u5f53\u524d\u7528\u6237\u4ef7\u503c\u548c\u5ba2\u6237\u6f5c\u5728\u4ef7\u503c\u7684\u91cd\u8981\u5de5\u5177\u548c\u624b\u6bb5\u3002RFM\u662fRencency\uff08\u6700\u8fd1\u4e00\u6b21\u6d88\u8d39\uff09\uff0cFrequency\uff08\u6d88\u8d39\u9891\u7387\uff09\u3001Monetary\uff08\u6d88\u8d39\u91d1\u989d\uff09\uff0c\u4e09\u4e2a\u6307\u6807\u9996\u2026<\/p>\n","protected":false},"author":91,"featured_media":44472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2036],"tags":[4373],"special":[],"class_list":["post-76768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-quan","tag-rfm","entry"],"views":68373,"_links":{"self":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/comments?post=76768"}],"version-history":[{"count":0,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/posts\/76768\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media\/44472"}],"wp:attachment":[{"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/media?parent=76768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/categories?post=76768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/tags?post=76768"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/www.growthhk.cn\/wp-json\/wp\/v2\/special?post=76768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}