ricardomadaleno
Board Regular
- Joined
- Mar 25, 2012
- Messages
- 65
Good morning,
I'm new to working with SQL ODBCs and Microsoft Query so I need a little help.
I have a workbook with several tables each one connected through an ODBCs to an SQL database...
They all look the same (same headers and type of information) but are stored in diferent databases for operational purposes.
Here's and example of the tables I have:
[TABLE="class: grid, width: 500"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 1[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 2[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 3[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 4[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 5[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 11[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 12[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 13[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 14[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 15[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 6[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 7[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 8[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 9[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 10[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
you get the idea...
So right now, i have each of these tables in it's separate sheet, and each table connected through it's ODBC.
What I would like to do is "join" all tables in one. Like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 1[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 2[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 3[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 4[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 5[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 11[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 12[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 13[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 14[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 15[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 6[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 7[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 8[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 9[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 10[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible?
I'm using Microsoft Office 2013 and I don't have access to the sql server management studio, so I would have to do it either in excel directly, or at the most through Microsoft Query.
Can anyone help?
Thank you very much, and sorry for the long post.
I'm new to working with SQL ODBCs and Microsoft Query so I need a little help.
I have a workbook with several tables each one connected through an ODBCs to an SQL database...
They all look the same (same headers and type of information) but are stored in diferent databases for operational purposes.
Here's and example of the tables I have:
[TABLE="class: grid, width: 500"]
<colgroup><col><col><col><col></colgroup><tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 1[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 2[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 3[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 4[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 5[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 11[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 12[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 13[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 14[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 15[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 6[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 7[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 8[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 9[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 10[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
you get the idea...
So right now, i have each of these tables in it's separate sheet, and each table connected through it's ODBC.
What I would like to do is "join" all tables in one. Like this:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Manager[/TD]
[TD]Project[/TD]
[TD]Date[/TD]
[TD]% Completed[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 1[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 2[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 3[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 4[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 1[/TD]
[TD]Project 5[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 11[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 12[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 13[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 14[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 2[/TD]
[TD]Project 15[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 6[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]55%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 7[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]75%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 8[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]85%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 9[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]63%[/TD]
[/TR]
[TR]
[TD]Manager 3[/TD]
[TD]Project 10[/TD]
[TD="align: right"]12-06-2015[/TD]
[TD="align: right"]21%[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible?
I'm using Microsoft Office 2013 and I don't have access to the sql server management studio, so I would have to do it either in excel directly, or at the most through Microsoft Query.
Can anyone help?
Thank you very much, and sorry for the long post.
Last edited: