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

  • SEARCH
  • Home
  • 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 8896867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:11:13+00:00 2026-06-15T00:11:13+00:00

I want to FULL JOIN following two tables Table 1: Persons P_Id Name 1

  • 0

I want to FULL JOIN following two tables

Table 1: Persons

P_Id      Name            
 1         A        
 2         B       
 3         C
 4         D
 5         E 

Table 2: Invoice

  Id       P_Id            
 111        3        
 112        3       
 113        1
 114        1
 115       15 

I used this query :

SELECT Persons.Name, Persons.P_Id, Invoice.Id
FROM Persons
FULL JOIN Invoice
ON Persons.P_Id=Invoice.P_Id
ORDER BY Persons.Name

But this generates an error

Unknown column ‘Persons.Name’ in ‘Field list’

MySQL server version is 5.5.19 and I used command line client in Microsoft Windows7

INNER JOIN, RIGHT JOIN and LEFT JOIN worked for me but I can’t perform FULL JOIN. What is the error please tell me I’m still a student. How can I perform FULL JOIN here ?

Thank You!

  • 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-15T00:11:15+00:00Added an answer on June 15, 2026 at 12:11 am

    in order to simulate FULL JOIN in mysql, you need to UNION the result of Right Join and Left Join from both tables

    SELECT  Persons.Name, Persons.P_Id, Invoice.Id
    FROM    Persons
            LEFT JOIN Invoice
                ON Persons.P_Id=Invoice.P_Id
    UNION
    SELECT  Persons.Name, Persons.P_Id, Invoice.Id
    FROM    Invoice
            LEFT JOIN Persons
                ON Persons.P_Id=Invoice.P_Id
    
    • SQLFiddle Demo
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to display a FULL JOIN of two tables, but using an intermediary
I am doing a join between two tables and want to select the columns
I have a series of tables that contain data I want to full text
I want to echo a full name from my MySQL database in my header.
I want to set my full name (or a name chosen by me) to
I have a organization name table with the following structure given below: CREATE TABLE
I have 2 tables. table 1 (projects): id, name, type table 2 (project_ratings): project_id,
I have these two database tables: locations id name users id location_id last_name first_name
I have got two tables: tbl_sms tbl_bids The above two table holds something like
I have two tables payroll_advance and payroll_advrtn ,and i supposed to do full outer

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.