Jump to content

NOT IT not working with subquery


JakeHarlan

Recommended Posts

The following statement generates a syntax error:

 

select questionKey from question where questionKey not in (select questionKey from userQuestionCount);

 

I ran the main query with values in place of the subquery and it runs correctly. I also successfully ran just the subquery...so the two querys are correct. When running them together I get a vague \"SQL syntax error...\" message.

 

Thanks in advance for your help.

Link to comment
https://forums.phpfreaks.com/topic/1590-not-it-not-working-with-subquery/
Share on other sites

MySQL doesn\'t support subqueries, except perhaps in the most recently released (beta?) version(s). Check your version to determine the status... I don\'t keep abreast of what\'s going on with MySQL development status well enough to give you the specifics.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.