This is the error.
ERROR 1064: You have an error in your SQL syntax near 'SELECT salary FROM people)' at line 1
I am running this on mySQL. I have just learned that mySQL does not like nested SELECT statements. But i still havent figured out a way around it.
I have a table called people. Each person has a name, and income. I want to produce a set of records of people who have an income higher than that of a specific person (BOB). I want to refer to BOB's income as a select statement so that if it changes later on, the statement still holds it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.