Something happened earlier this week (or maybe it was last week, I forget), and I was quite perplexed for a good 30 seconds, so I thought I'd try and make this problem a bit more well-known. Consider the following schema:
CREATE TABLE blacklist (
person text
);
INSERT INTO blacklist VALUES ('badguy');
CREATE TABLE orders (
orderid serial PRIMARY KEY,
person text,
amount numeric
);
↧