Posts Tagged “SQL”

MySQL: Finding the records in one table that are not in another table

OK, this’ll make users of “proper databases” cringe but because MySQL doesn’t support sub-selects you can’t do the most obvious way of selecting records in one table that aren’t in another. Here’s how it’s done, with a clear explanation of why it works! select po.id from po left join pn on po.id=pn.id where pn.id is [...]

Read more »



Holy Shmoly! is Stephen Fry proof thanks to caching by WP Super Cache