I am having one small application which is used by some schools. I am trying the following Mysql Double query into the application. But its fetching some errors.
mysql> select fname,(select fname,lname from id) as google from id;
ERROR 1241 (21000): Operand should contain 1 column(s)
mysql>
mysql> select fname,(select fname from id) as google from id;
ERROR 1242 (21000): Subquery returns more than 1 row
mysql>
I am trying to accomplish which will display ID , Fname , Lname using Double Query.
You are fetching two operand in query
select fname,lname from idwhich needs to be 1 because you are using alias, if you want both fields, better not use alias.