跟着视频打的代码运行后提示错误,,,各位大神来看看吧,,,,
DROP TABLE IF EXISTS tianchi_mobile_recommendation_predict;
CREATE TABLE tianchi_mobile_recommendation_predict AS
SELECT C.USER_ID, C.ITEM_ID
FROM
(
SELECT A.USER_ID,A. ITEM_ID
FROM
(
SELECT USER_ID, ITEM_ID
FROM TRAIN_USER
WHERE TIME >= "2014-12-18 12" AND TIME < "2014-12-19 00" AND BEHAVIOR_TYPE==3
GROUP BY USER_ID, ITEM_ID
)A
LEFT OUTER JOIN
(
SELECT USER_ID, ITEM_ID
FROM TRAIN_USER
WHERE TIME>= "2014-12-18 12" AND TIME< "2014-12-19 00" AND BEHAVIOR_TYPE==4
GROUP BY USER_ID, ITEM_ID
)B
ON A.USER_ID == B.USER_ID AND A.ITEM_ID == B.ITEM_ID
WHERE ISNULL (B.ITEM_ID)
)C
LEFT OUTER JOIN TRAIN_ITEM D
ON C.ITEM_ID == D.ITEM_ID
WHERE !ISNULL(D.ITEM_ID)
GROUP BY C.USER_ID,C.ITEM_ID;
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。