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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:02:25+00:00 2026-05-29T11:02:25+00:00

I want to run select query on multiple table and combine result. for example

  • 0

I want to run select query on multiple table and combine result. for example i want to merge Last_month server availability report with current_month availability report. I have two table Last_table1 and current_table1

Last_table1
===========
Hosts    Availability
Server1      99.99%
Server2      87.55%


Current_table1
==============
Hosts    Availability
Server1     78.00%
Server2     100.00%

I want to merge both table and need result like following. How do i write select query?

Hosts         Last       current
Server1      99.99%      78.00%
Server2      87.55%      100.00%
  • 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-29T11:02:26+00:00Added an answer on May 29, 2026 at 11:02 am

    You need to do a JOIN, and display the proper columns in the proper places:

    SELECT 
      L.Hosts, L.Availability AS Last, C.Availability AS Current
    FROM 
      Last_Table1 L
    INNER JOIN 
      Current_Table1 C
    ON 
      C.Hosts = L.Hosts
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want select multiple (all) values from table Account. string query = SELECT *
I want to query a result from a table. The problem I run into
Looking to run a query using multiple left joins. The following query works. SELECT
I want to do this: run a command capture the output select a line
How do I select i.e. 10 articles without having to run 1 query to
Possible Duplicate: PHP MySQL multiple search query using option / select HTML form tags
I want to run a query, get the results and then iterate through the
Using SQL 2005, I am trying to run a query on a Orders table
I want run a script as follows: runner: ssh 'java program &' ssh 'java
Why this code don't work,when i want run this code vwd 2008 express show

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.