Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
thanks for reply
but how can i list the hotels for each city as
i've to display it on a home page..
Posted

Followup your one question at one place only. This question does not mean anything for us.

Looks like you are talking about this thread of yours:
http://www.codeproject.com/answers/68638/About-Sql-Query.aspx[^]

referring that thread...
ritesh2712 wrote:
hotelTable which contain cityid and related to


Whats the problem?
Select HotelName, cityName 
FROM hotelTable 
Inner Join CityTable 
on HotelTable.CityID=CityTable.CityID


Please pick a good SQL book and read. It would help.
 
Share this answer
 
If this is homework then you should talk to your teacher for help. I can't imagine what else it could be.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900