J
John
Hi
I created a table of place names. Each place name has a standard name and a
number of variants of that name. For exampl
place_id place standard_nam
1 Seecon
2 Seekon
3 Ceekon
4 Barna
5 Bearna
For example, Seecon is the correct form of a place name, but, the variants
Ceekon and Seekon sometimes occur in the literature
I have put all place names, whether standard or variant, in one field, so
that I can search them in one go
To retrieve each place name and its standard name, I run the following
quer
SELECT places_a.place AS place_name, places_b.place AS correct_nam
FROM places AS places_a, places AS places_
WHERE places_a.standard_name=places_b.place_i
I retrieve the following results
place_name correct_nam
Seecon Seeco
Seekon Seeco
Ceekon Seeco
Barna Barn
Bearna Barn
This is what I want
I have since had to add a description
I added a description_id to the places table as a foreign key and added a
description table.
Description_id Descriptio
1 A rocky island in the Atlantic
Place_id place standard_name description_i
1 Seecon 1
2 Seekon 1
3 Ceekon 1
4 Barna 4
5 Bearna 4
This structure doesn't feel normalized. Should I be putting the variants in
their own table? Should I put the standard_name in the description table. I
have an unease about the structure and I am not sure why
Any help would be much appreciated
I created a table of place names. Each place name has a standard name and a
number of variants of that name. For exampl
place_id place standard_nam
1 Seecon
2 Seekon
3 Ceekon
4 Barna
5 Bearna
For example, Seecon is the correct form of a place name, but, the variants
Ceekon and Seekon sometimes occur in the literature
I have put all place names, whether standard or variant, in one field, so
that I can search them in one go
To retrieve each place name and its standard name, I run the following
quer
SELECT places_a.place AS place_name, places_b.place AS correct_nam
FROM places AS places_a, places AS places_
WHERE places_a.standard_name=places_b.place_i
I retrieve the following results
place_name correct_nam
Seecon Seeco
Seekon Seeco
Ceekon Seeco
Barna Barn
Bearna Barn
This is what I want
I have since had to add a description
I added a description_id to the places table as a foreign key and added a
description table.
Description_id Descriptio
1 A rocky island in the Atlantic
Place_id place standard_name description_i
1 Seecon 1
2 Seekon 1
3 Ceekon 1
4 Barna 4
5 Bearna 4
This structure doesn't feel normalized. Should I be putting the variants in
their own table? Should I put the standard_name in the description table. I
have an unease about the structure and I am not sure why
Any help would be much appreciated