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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:24:00+00:00 2026-05-23T13:24:00+00:00

The issue here is suppose if i want to use two queries seperated by

  • 0

The issue here is suppose if i want to use two queries seperated by UNION, the query is as

             $query=(select a.name,a.age,b.country,b.state from a,b where a.aid=b.bid)  UNION (select a.name,a.age,c.profession,c.salary from a,c where a.anid=c.cid)

here the result would only show the first query’s result , Any way in which i could display the result of 2nd query also down to the result of first query using UNION. Expecting any help on this. Thanks

  • 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-23T13:24:01+00:00Added an answer on May 23, 2026 at 1:24 pm

    Are you after

    (
      select a.name,a.age,b.country,b.state,null as profession,null as salary 
      from a,b
      where a.aid=b.bid
    )  
    UNION 
    (
       select a.name,a.age,null,null,c.profession,c.salary
       from a,c
       where a.anid=c.cid
    )
    

    You will have null in the profession and salary columns from the first query and null in country and state columns in the second query

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

Sidebar

Related Questions

Here is the issue. Suppose there is a DOMAIN A which is going to
My issue here is quite simple : i'm trying to use the jQuery validate
I have a slideshow programed here that i want two images to be on
Im having a weird issue here. Its probably just something stupid but I dont
I am facing a issue here in reading the values set by a stored
I have a curious issue here In my ejbCreate() method from where i insert
I'm having an issue here, I am trying to get all the titles from
I've a small issue here. I am using an if statement with UIAlertView and
Having an issue here that I have tried everything I can think of but
Im having a weird issue here; The following .htaccess works but now (after changing

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.