I got a query:
SELECT a.Vendor, i.Vendor
FROM whole1 a
LEFT JOIN whole2 i
ON (a.Vendor = i.Vendor)
GROUP BY a.Vendor, i.Vedor
LIMIT 0, 200
By default Inner JOIN is used. Left join gives me all results from left table. Same with Right join.
What I’m looking for is combination of Left and Right join, However NOT INNER Join.
I want to have a result like
AMD, NULL
ACER, NULL
NULL, INTEL
NULL, ATI
Any way to do it?
You need a full outer join,
which is unfortunately not implemented in
MYSQL, instead you can useunionofleftandrightjoin :