BigQuery SQL Exclusion NOT IN empty results

前端 未结 2 1228
情歌与酒
情歌与酒 2021-01-24 03:07

I\'m having problems with this not returning any values. There are accounts in the database that match this criteria. Somewhat confused why they aren\'t being returned. Any sugg

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-24 03:31

    Ensure you're referencing the field you don't want to be present in the subquery result:

    select accountid from `table1` 
    where accountid not in (select accountid from `table1` where action != "Action8")
    

提交回复
热议问题