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 |
|
mcupryk
Yak Posting Veteran
91 Posts |
Posted - 2011-02-20 : 22:45:35
|
| delete |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-02-20 : 22:54:39
|
REGIONID is available in WorldCities why do you want to get from tbl_Regions or do you mean "Region" instead ? KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
MIK_2008
Master Smack Fu Yak Hacker
1054 Posts |
Posted - 2011-02-21 : 13:45:03
|
| Select Wc.columnName1,Wc.columnName2,Wc.columnName3,...,Wc.ColumnNameNFrom WorldCities WCInner Join tbl_regions R on R.RegionId=WC.RegionId and WC.countryId=R.CountryIDWhere R.countryId='us' |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-02-21 : 20:43:57
|
quote: Originally posted by mcupryk because the other table has the correct regionidAny help would be awesome.
Then what is the link to to tbl_Regions table from World Cities ? KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
|
|
|