>> select a.col1, b.col2 from a,b >> where a.col1 = b.col2 >> or a.col1 not in (select b.col2 from b) >This would work, but it would be *much* slower than a UNION query. "Not >In" queries are perhaps the slowest you can run; see the earlier thread >"Query Problem" for a discussion. UNION queries are, in fact, very fast >... just awkward to code and manipulate. Why should this be slower since the UNION Query still has an identical not in clause? This is far easier (for me) to read. Marc
- [SQL] Outer Joins Marc Rohloff
- Re: [SQL] Outer Joins Grant Finnemore
- Re: [SQL] Outer Joins Josh Berkus
- [SQL] psql question Joe Conway
- Re: [SQL] psql question Mathijs Brands
- Re: [SQL] psql question bmccoy
- Re: [SQL] psql question(actually ... Antti Linno
- Re: [SQL] Outer Joins Marc Rohloff
- Re: [SQL] Outer Joins Josh Berkus
- Re: [SQL] Outer Joins Josh Berkus
- [SQL] outer joins Algirdas Šakmanas
- Re: [SQL] outer joins Poet/Joshua Drake
- Re: [SQL] outer joins [EMAIL PROTECTED]
- RE: [SQL] outer joins Picard, Cyril