|
I've never looked into the performance implications of each, but with a smart query optimizer I think they'd be the same. Thanks for the TP (!), and now that you've figured it out, I'll spill the answer for others. If that sounds mean, since you went and figured it out and implemented it yourself, like you said, you'll remember in future, so it's actually valuable to wait with the answer.
SELECT area
FROM A INNER JOIN B ON B.area = A.area
Or
SELECT area
FROM A, B
WHERE B.area = A.area;The second one is the old ANSI SQL way of doing it. I think most people prefer the JOIN syntax. If the query processor isn't in top shape, I think JOIN might be a little faster, but they're probably the same.
|