此处https://developers.google.com/bigquery/docs/query-reference的 Google SQL 语法指南 似乎没有解决 NOT IN 术语的使用问题。
我得到错误
Query Failed
Error: Encountered "" at line 0, column 0. Was expecting one of:
(然后谷歌在“一个”之后没有列出任何内容)
当我的查询是
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
“小”表有 14 行。大表有 57K 行。
有任何想法吗?不确定 Google SQL 是否支持 NOT IN。
谢谢肖恩