MySQL Forums
Forum List  »  MySQL Query Browser

View Join two tables ,merge fields
Posted by: Jose Valle
Date: October 23, 2014 11:59AM

Hello people, I need to find some query that help me to marge two tables to make some like this:

For example this tables.

Table one
==========
|ID|NAME |
==========
|1 |item1|
----------
|2 |item2|



Table two
==========
|ID| COL |
==========
|1 |other1|
----------
|2 |other2|


and I want to make this result


View one_two
=====================
|KEYID| NEWNAME| TABLE
=====================
|1 | item1 | one
---------------------
|2 | item2 | one
---------------------
|1 | other1 | two
---------------------
|2 | other2 | two
---------------------


I hope that any one help me =)

Options: ReplyQuote


Subject
Written By
Posted
View Join two tables ,merge fields
October 23, 2014 11:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.