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 826255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:23:13+00:00 2026-05-15T03:23:13+00:00

Hi friends i am having problem in joining two tables in oracle my two

  • 0

Hi friends i am having problem in joining two tables in oracle my two tables are shown bellow

table1 looks like

 id    Name    Jan  
 7001  Deven   22 
 7002  Clause  55 
 7004  Monish  11 
 7010  Dipesh  55
 7070  Dipika  100

table2 looks like

  id      Name       Feb  
  7001    Deven      12 
  7002    Clause     15 
  7003    Nimesh     20 
  7004    Monish     21 
  7005    Ritesh     22 

i want to combine this two table and want answer like bellow

table2 looks like

  id      Name      Jan   Feb  
  7001    Deven     22    12 
  7002    Clause    55    15 
  7003    Nimesh    -     20 
  7004    Monish    11    21 
  7005    Ritesh    -     22 
  7010    Dipesh    55    -
  7070    Dipika    100   -
  • 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-05-15T03:23:14+00:00Added an answer on May 15, 2026 at 3:23 am

    We join asymmetrical records sets using the OUTER JOIN syntax. A LEFT JOIN will provide the results you want:

    SQL> select t72.id
      2         , t72.name
      3         , t34.jan
      4         , t72.feb
      5  from t72
      6       left outer join t34
      7       on ( t72.id = t34.id)
      8  order by t72.id
      9  /
    
            ID NAME                        JAN        FEB
    ---------- -------------------- ---------- ----------
          7001 Deven                        22         12
          7002 Clause                       55         15
          7003 Nimesh                                  20
          7004 Monish                       11         21
          7005 Ritesh                                  22
    
    SQL>
    

    edit

    I note you have amended the sample data while I was knocking up the demo.

    When both tables have values of ID which the other table lacks we can use a FULL JOIN to retrieve values from both sides:

    SQL> select nvl(t72.id, t34.id) as id
      2         , nvl(t72.name, t34.name) as name
      3         , t34.jan
      4         , t72.feb
      5  from t72
      6       full outer join t34
      7       on ( t72.id = t34.id)
      8  order by t72.id
      9  /
    
            ID NAME                        JAN        FEB
    ---------- -------------------- ---------- ----------
          7001 Deven                        22         12
          7002 Clause                       55         15
          7003 Nimesh                                  20
          7004 Monish                       11         21
          7005 Ritesh                                  22
          7010 Dipesh                       55
          7070 Dipika                      100
    
    7 rows selected.
    
    SQL>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi friends i am having problem in joining tables in oracle my tables are
Dear Friends from Stackoverflow, Please help me with a problem that i'm having when
hai friends i am having the table like this TBLKEY EMPKEY EMPNAME ----------- ------------------------------
Hello friends i am having problem in parsing jSON web services data I have
I am having problem in sharing the images on friends wall by facebook api.
having a little architectural trouble here. In C++, we have the notion of 'friends,'
My friends and I are starting a game like Pokemon and we wanted to
Me and some friends are writing a MORPG in Java, and we would like
I have two professional programmer friends who are going to teach me, and they
Friends its really giving me a great head ache about the problem I am

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.