mysql_query("SELECT a.guessNum FROM (SELECT * FROM PeerPrediction1 WHERE taskid=$taskid INNER JOIN UserData On username) a WHERE spanflag=0");
I have this query but it does not work. PeerPrediction1 is a table with schema: username, taskid... Userdata: username, guessNum,spanfalg I followed this link, but still something wrong, could anybody help? Nested select statement in SQL Server