Problem with write query

Posted by phenevo on Stack Overflow See other posts from Stack Overflow or by phenevo
Published on 2010-04-08T14:00:55Z Indexed on 2010/04/08 14:03 UTC
Read the original article Hit count: 551

Filed under:
|

Hi, I've got collection of geo objects in database:

There are four Tables:

Countries
Regions
Provinces
Cities

Cities has inter alia ProvinceCode Provinces has inter alia regionCode Regions has inter alia CountryCode

And there is fifth Table: Descriptions

ObjectCode
ObjectType(country, region, province, city)
Description.

How to get from Descriptions table, all descriptions from objects which are in the definite country ??

© Stack Overflow or respective owner

Related posts about sql

Related posts about query