Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8314979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:00:18+00:00 2026-06-08T21:00:18+00:00

The Google SQL syntax guide found here https://developers.google.com/bigquery/docs/query-reference does not seem to address use

  • 0

The Google SQL syntax guide found here
https://developers.google.com/bigquery/docs/query-reference
does not seem to address use of the NOT IN terminology.

I get the error

Query Failed
Error: Encountered "" at line 0, column 0. Was expecting one of:  

(and then Google lists nothing after the words ‘one of’)

when my query is

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

the table ‘small’ has 14 rows. The table big has 57K rows.

Any ideas?
Not sure if Google SQL supports NOT IN.

Thanks
Shawn

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:00:21+00:00Added an answer on June 8, 2026 at 9:00 pm

    Semijoins and antijoins use the following syntax:
    SELECT field
    FROM table
    WHERE field [NOT] IN (SELECT other_field FROM other_table WHERE foo = 'bar')

    So your updated query with the subselect is the correct version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update 2022 There is cloud sql proxy now: https://cloud.google.com/sql/docs/mysql/sql-proxy#how-works Old Question I am currently
I was hoping to use basic SQL Create Table syntax within Google BigQuery to
Which SQL data types can I use to accommodate links like www.google.com ? Which
I am reading the document of Google Cloud SQL. But I am not sure
I'm really tired of access and its weirdo SQL syntax, I've browsed google and
I've been looking on google but not finding anything that does the trick for
I am getting this error in Google BigQuery: Error: Ambiguous field reference in SELECT
I'm using D1 size of google cloud sql instance and billing is enabled.Till some
I need to run a loop in SQL. Google this is a little hard
Here is my error information : CREATE TABLE `mb_topics` ( `id` mediumint(9) NOT NULL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.