![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Captain Paralytic: On Feb 13, 12:51 pm, Hans Castorp <SOZRBLNTL... (AT) spammotel (DOT) com> wrote: Captain Paralytic wrote on 13.02.2011 13:33: What is to stop 2 countries having cities with the same name? It's not really uncommon, just think about the many U.S. cities that were named after european cities (Berlin, Paris, London, Madrid) That is my point. The schema as described cannot handle this situation. Try and get the village of Baarle into a DB-schema! :-) http://en.wikipedia.org/wiki/Baarle-Hertog Oh, and what about Nicosia? |

#12
| |||
| |||
|
|
Captain Paralytic: On Feb 13, 12:51 pm, Hans Castorp<SOZRBLNTL... (AT) spammotel (DOT) com> wrote: Captain Paralytic wrote on 13.02.2011 13:33: What is to stop 2 countries having cities with the same name? It's not really uncommon, just think about the many U.S. cities that were named after european cities (Berlin, Paris, London, Madrid) That is my point. The schema as described cannot handle this situation. Try and get the village of Baarle into a DB-schema! :-) http://en.wikipedia.org/wiki/Baarle-Hertog Oh, and what about Nicosia? |

#13
| |||
| |||
|
|
On 2/13/2011 11:10 AM, Erick T. Barkhuis wrote: Try and get the village of Baarle into a DB-schema! :-) http://en.wikipedia.org/wiki/Baarle-Hertog |
|
I just followed you link - I love it! I knew borders and things could get complicated over there, but this has to be one of best. ![]() |
#14
| |||
| |||
|
|
Jerry Stuckle: On 2/13/2011 11:10 AM, Erick T. Barkhuis wrote: Try and get the village of Baarle into a DB-schema! :-) http://en.wikipedia.org/wiki/Baarle-Hertog I just followed you link - I love it! I knew borders and things could get complicated over there, but this has to be one of best. ![]() This is what I considered the best part of the article (apart from the little map): "The border is so complicated that there are some houses that are divided between the two countries. There was a time when according to Dutch laws restaurants had to close earlier. For some restaurants on the border it meant that the clients simply had to change their tables to the Belgian side." |

#15
| |||
| |||
|
|
On Feb 13, 8:58*am, "John" <john1... (AT) yahoo (DOT) com> wrote: Hi I have a table 'major' containing only two columns 'city' and 'pop'. I have another table 'country' containing 100 columns. I want to SELECT from COUNTRY those rows where the city's pop is more than 10000. SELECT ind,fish,city FROM country WHERE country.city=major.city AND major.city.pop<10000 I appreciate I cannot say "major.city.pop" but how do I access 'pop' of 'city' in 'major'? Regards John As others have pointed out, yur schema is fundamentally flawed. For instance What is to stop 2 countries having cities with the same name? |
#16
| |||
| |||
|
|
Newcastle is in South Africa as well as the UK. |
#17
| |||
| |||
|
|
On Feb 13, 7:33*am, Captain Paralytic <paul_laut... (AT) yahoo (DOT) com> wrote: On Feb 13, 8:58*am, "John" <john1... (AT) yahoo (DOT) com> wrote: Hi I have a table 'major' containing only two columns 'city' and 'pop'. I have another table 'country' containing 100 columns. I want to SELECT from COUNTRY those rows where the city's pop is morethan 10000. SELECT ind,fish,city FROM country WHERE country.city=major.city AND major.city.pop<10000 I appreciate I cannot say "major.city.pop" but how do I access 'pop' of 'city' in 'major'? Regards John As others have pointed out, yur schema is fundamentally flawed. For instance What is to stop 2 countries having cities with the same name? Cap, this design is what you get when you let kids "design" databases. * My first thought was that this looks like someones homework, maybe not, but when asking how to join two tables, it certainly looks like it. |
#18
| |||
| |||
|
|
On Feb 16, 1:02 am, onedbguru <onedbg... (AT) yahoo (DOT) com> wrote: On Feb 13, 7:33 am, Captain Paralytic <paul_laut... (AT) yahoo (DOT) com> wrote: On Feb 13, 8:58 am, "John" <john1... (AT) yahoo (DOT) com> wrote: Hi I have a table 'major' containing only two columns 'city' and 'pop'. I have another table 'country' containing 100 columns. I want to SELECT from COUNTRY those rows where the city's pop is more than 10000. SELECT ind,fish,city FROM country WHERE country.city=major.city AND major.city.pop<10000 I appreciate I cannot say "major.city.pop" but how do I access 'pop' of 'city' in 'major'? Regards John As others have pointed out, yur schema is fundamentally flawed. For instance What is to stop 2 countries having cities with the same name? Cap, this design is what you get when you let kids "design" databases. My first thought was that this looks like someones homework, maybe not, but when asking how to join two tables, it certainly looks like it. The way I look at it is that, if designing relational database applications is so easy that anyone can do it, why did I spend so long studying at university. Then I look at the stuff designed by others and I know why! |
![]() |
| Thread Tools | |
| Display Modes | |
| |