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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:35:34+00:00 2026-06-05T13:35:34+00:00

Can anyone help me on how could I join two tables without merging the

  • 0

Can anyone help me on how could I join two tables without merging the result into single row? Please see below query:

SELECT * 
  FROM resorderdetails rd
 INNER JOIN resinvalidorderdetails ri
    ON rd.itemid=ri.srcitemid;

Let say for example I have 1 row in resorderdetails table with field itemid=1 and I have 1 row in resinvalidorderdetails table with field srcitemid=1.

If we will going to execute the above query, it will return a result of single row [merging the data of two tables]

What I want to do is to have two rows as a result. The first row is the record came from resorderdetails and the other row is the record came from resinvalidorderdetails without using UNION ALL or UNION.

How could I do it? Is it possible?

  • 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-05T13:35:36+00:00Added an answer on June 5, 2026 at 1:35 pm

    It’s not possible, because you wannna have :

    SELECT * FROM resorderdetails rd
    

    and

    select * from resinvalidorderdetails
    

    There are only joins operations and UNION which you don’t want to use, and the JOINS will put together or remove commons ids and UNION will do exactly what you want

    Beside to display a query with 2+ tables you need something in common(even the union need same number of columns).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone help me figure out how I could simplify this code, without using
I could not make a better title, if anyone can do it please, help
I wonder if anyone can help me to understand where I could be going
Can anyone help me perform the following... example: A B C D row 1
Can anyone help me how could I achieve an effect like this image sample
can anyone help me to solve my problem, I've to make the alarm goes
Can anyone help me to find some full specifications for the accelerometer of the
can anyone help me.I cant create a new web application.I mean i cant find
Can anyone help. I have an ASP.NET application which has a web.config file so
Can anyone help me with a regex to allow atleast one special character, one

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.