Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3724

Columns from multiple tables in one result grid (1 reply)

$
0
0
Dear members,

I've got a question and I hope you can help me out. I guess it is easy to answer for you guys:

How can I get results from multiple colums, from multiple databases in one Result grid for me to export?

If I do it from the navigator (select multiple colums --> right click --> Select Rows) I get:
SELECT answer_id, choice_id
FROM `XXXXXX`.`answer_choice`;
SELECT id, question_id
FROM `XXXXXX`.`answer`;
SELECT id
FROM `XXXXXX`.`choice`;

And the result grid has three tabs. I want it all in one grid.

I have the following, and this works:
SELECT email, started_at, name, unique_id, answer_id
FROM `XXXXXX`.`participant`,`XXXXXX`.`answer_choice`;

but some columns from different tables have the same name (for example 'id') and give an error if I try to list them all.

Can you please provide me with a query to select all the relevant columns from different tables all in one result grid?

Thank you very much!

Viewing all articles
Browse latest Browse all 3724

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>