SELECT name, surname, city
from person p JOIN location USING(id)
WHERE p.id IN ( 3, 1);
-->
+----+---------+------+
|name| surname | city |
+----+---------+------+
|bill| murray | ibk |
+----+---------+------+
SELECT personid FROM persongames WHERE gameid=3;
-->
+----------+
| personid |
+----------+
| 1 |
| 3 |
+----------+
ABER
SELECT name, surname, city
from person p JOIN location USING(id)
WHERE p.id IN (
SELECT personid FROM persongames WHERE gameid=3 );
--> ERROR 1064: in line 4
wer kann mir helfen warum funktioniert konstante menge ( 3, 1 ) aber
mit select nicht ???
:-) geggino danke für eure hilfe
from person p JOIN location USING(id)
WHERE p.id IN ( 3, 1);
-->
+----+---------+------+
|name| surname | city |
+----+---------+------+
|bill| murray | ibk |
+----+---------+------+
SELECT personid FROM persongames WHERE gameid=3;
-->
+----------+
| personid |
+----------+
| 1 |
| 3 |
+----------+
ABER
SELECT name, surname, city
from person p JOIN location USING(id)
WHERE p.id IN (
SELECT personid FROM persongames WHERE gameid=3 );
--> ERROR 1064: in line 4
wer kann mir helfen warum funktioniert konstante menge ( 3, 1 ) aber
mit select nicht ???
:-) geggino danke für eure hilfe