小编Mat*_*son的帖子

适用于Google BigQuery的SQL语法NOT IN

此处的Google SQL语法指南 https://developers.google.com/bigquery/docs/query-reference 似乎未解决NOT IN术语的使用问题.

我收到了错误

Query Failed
Error: Encountered "" at line 0, column 0. Was expecting one of:  
Run Code Online (Sandbox Code Playgroud)

(然后Google在"其中一个"之后没有列出任何内容)

当我的查询是

SELECT ageinmonths,amountborrowed,borrowerrate,creationdate,creditgrade,
       debttoincomeratio,groupkey,key,lenderrate,listingkey,modifieddata,
       originationdate,prosperrating,status,term
FROM prosperloans1.loans2 as big,
     prosperloans1.dupelistingkeysinloans2 as small
WHERE big.listingkey NOT IN small.listingkey
Run Code Online (Sandbox Code Playgroud)

表'small'有14行.表大有57K行.

有任何想法吗?不确定Google SQL是否支持NOT IN.

谢谢肖恩

google-bigquery

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

google-bigquery ×1