Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Yoda
Starting Member
1 Post |
Posted - 2005-10-10 : 06:36:53
|
| Can anyone help me here.I have 2 table that I want to kind of merge together to create a 3 table.Table one looks like:CustomerABCetcTable two looks like:Type12345I looking to create table three to look like:Customer, TypeA 1A 2A 3A 4A 5B 1B 2B 3B 4B 5C 1etcThanks |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-10-10 : 06:42:54
|
| You dont need to create third table just use this Select Query Select T1.Customer, T2.type from Table1 T1 Cross join Table2 T2 order by T1.CustomerMadhivananFailing to plan is Planning to fail |
 |
|
|
chiragkhabaria
Master Smack Fu Yak Hacker
1907 Posts |
Posted - 2005-10-10 : 06:51:42
|
| And also if you want to create the 3rd table then you use the following query for it. Select T1.Customer, T2.type Into third_tableName from Table1 T1 Cross join Table2 T2 order by T1.CustomerComplicated things can be done by simple thinking |
 |
|
|
|
|
|