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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:25:40+00:00 2026-06-15T09:25:40+00:00

I have the follow query: SELECT table1.data AS table1_data, table2.data AS table2_data, table3.data AS

  • 0

I have the follow query:

  SELECT table1.data AS table1_data,
     table2.data AS table2_data,
     table3.data AS table3_data
    FROM table1, table2, table3
GROUP BY table1.data, table2.data, table3.data

which results:

table1_data  | table2_data  | table3_data
------------------------------------------
2012-11-15   | 2012-11-18   | 2012-11-20
2012-11-16   | 2012-11-18   | 2012-11-23
2012-11-17   | 2012-11-18   | 2012-11-27

when I expect:

all_tables_data
----------------
2012-11-15
2012-11-16
2012-11-17
2012-11-18
2012-11-18
2012-11-18
2012-11-20
2012-11-23
2012-11-27

I have “googled” some terms but I can’t describe this type of query, so, nothing found which can help solve the problem.

  • 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-15T09:25:41+00:00Added an answer on June 15, 2026 at 9:25 am

    you should use “UNION ALL” instead of “GROUP BY”:

    select table1.data from table1
    union all
    select table2.data from table2
    union all
    select table3.data from table3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the follow query: SELECT pro.* FROM tb_AutProposta pro, tb_AutParcelamento par WHERE pro.id
I have the query below which uses a union to pull data from three
I have this query, which was working fine. SELECT SUM(amount) FROM company.invoice_line WHERE item_id
I have the cursor with the query statement as follows: cursor.execute(select rowid from components
I have a record that came from the follow linq query: using (var context
We have a sql query as follows select * from Table where date <
I'm using the follow query to try and identify data from a table with
In my model I have the follow query: function myquerydata() { $data = array();
Hello i have a linq query as follow var q = (from c in
I have a mysql problem, my query looks as follows but not complete SELECT

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.