Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8817151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:46:43+00:00 2026-06-14T04:46:43+00:00

I got a query: SELECT a.Vendor, i.Vendor FROM whole1 a LEFT JOIN whole2 i

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:46:44+00:00Added an answer on June 14, 2026 at 4:46 am

    You need a full outer join,
    which is unfortunately not implemented in MYSQL, instead you can use union of left and right join :

    SELECT a.`Vendor`, i.`Vendor`
    FROM `whole1` a LEFT JOIN whole2 i ON (a.`Vendor` = i.`Vendor`) 
    GROUP BY a.`Vendor`, i.`Vendor` 
    
    UNION
    
    SELECT a.`Vendor`, i.`Vendor`
    FROM `whole1` a RIGHT JOIN whole2 i ON (a.`Vendor` = i.`Vendor`) 
    GROUP BY a.`Vendor`, i.`Vendor`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got query SELECT frst.Date,t1.Value from [ArchiveAnalog] frst LEFT JOIN (SELECT Date,Value FROM [ArchiveAnalog]
I've got the SQL query below: SELECT message, sent_date, user_id FROM messages LEFT JOIN
I've got the following query: SELECT name, GROUP_CONCAT(job SEPARATOR ','), count(*) FROM users GROUP
I got a query: SELECT a.nick,grp,count(*) FROM help_mails h JOIN accounts a ON h.helper=a.id
Ive got query like this: select distinct UserID, Count(UserId) as MyNumber from dbo.User2User group
I got this Doctrine query: select upper(substring(e.name, 1, 1)) first_letter from Application\Models\Exercise e group
Suppose we got a original query as follows: SELECT A, B, C FROM tblA
I've got a mysql query like this: SELECT A.ID, A.NAME, B.ID, B.NAME FROM table1
I've got a query that looks something like this: SELECT * FROM table WHERE
I've got this query that works ok, select * from Materia where Cursar_Cursada=0 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.