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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:57:26+00:00 2026-05-19T12:57:26+00:00

Hello everybody Well my question is about sql commands… If I have 2 tables

  • 0

Hello everybody
Well my question is about sql commands…

If I have 2 tables with the same number of columns and the same fieldnames (e.g: A(n,name,date) and B(n,name,date))

In the website, I want to retrieve data from both tables and display them in order by date descendent.

(The use of two tables is due to difference in tables database or server,or just the use of every table.. sometimes there’s a need to display both tables in one order)

exemple

table Sport_news(N_event,Title,Texte,Date)
table International_news(N_event,Title,Texte,Date)

Display:

  Christiano Ronaldo ... 2011/25/01
        christiano ronaldo is one of the famous...


  Barack Obama president of the USA...  2011/24/01
          Barak obama........

  The arsenal has... 2011/23/01
         Chamakh, player of arsenal is anger.....

I hope that the idea is clear : and 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-05-19T12:57:27+00:00Added an answer on May 19, 2026 at 12:57 pm

    You want UNION

    select a.name,a.date
      from table1 a
     where ...
     UNION ALL
    select b.name,b.date
      from table2 b
     where ...
    order by 2 desc
    

    When you use a UNION, you specify the order by with column numbers instead of names.

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

Sidebar

Related Questions

Hello everybody I have a question: I have a array String[] parte and I
Hello everybody! I have a SQL (see above) and i would like to know
Hello everybody and sorry for the rather confusing question-title. I have a Hibernate Class
Note: This question is posted here hello everybody, I have a predefind list of
hello everybody i have a question regarding strip_tags function. i have an html document
Hello everybody I have some certs in SQL 2008 but am by no means
Hello everybody i hope everybody is doin well, Actually i have a table in
Hello everybody my linq to sql selection does not working on dateTime field for
Hello everybody i have C++ tStringGrid I want to get string from specific cell
hello everybody i have a listbox within which is a datatemplate.Inside it is checkbox,textbox,label...Wat

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.