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 |
|
rogerclerkwell
Yak Posting Veteran
85 Posts |
Posted - 2011-09-02 : 12:54:00
|
| I've got 2 tables one called CountryCountryNameUSACanadaUKSpainand the other ProductsProductName SizeRedBike SRedBike MRedBike LBlueBike 1BlueBike 2BlueBike 3I want to select all data from both these tables and link them up so each country shows a product eg:USA RedBike SUSA RedBike MUSA RedBike LUSA BlueBike 1USA BlueBike 2USA BlueBike 3Canada RedBike SCanada RedBike MCanada RedBike LCanada BlueBike 1Canada BlueBike 2and so onIs this possible to do? |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-09-02 : 13:01:36
|
just do a cross joinSELECT *FROM Country cCROSS JOIN Product p ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|