Skip to content
Advertisement

SQL inner join syntax error

I have this error. I am new to SQL and can’t figure what is wrong with my syntax. I changed my INTERSECT statement to inner join realizing SQL does not accept such syntax. However I continue to get an error.

ERROR:

The query is suppose to find the userIDs and the email of user who’s property has ratings equal to 5 and has AvgTemp over 55.

Advertisement

Answer

Try this:

No need for any subqueries, just a succession of joins.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement