I'm having this very complicated problem getting the right results out of my tables.
These are the tables:
CREATE TABLE `Answers` (
`id` int(10) unsigned NOT NULL auto_increment,
`question_id` int(10) unsigned NOT NULL default '0',
`session_id` varchar(255) NOT NULL default ''...
Some of you probably know this trick to select rows from one table with an ID value that doesn't exist in another table:
mysql> SELECT table1.* FROM table1
-> LEFT JOIN table2 ON table1.id=table2.id
-> WHERE table2.id IS NULL;
But now take look at this particular situation:
CREATE TABLE...
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.