E
Entropique
Trying to create two tables or two questions with the same name results in an error
Trying to create two fields with the same name in a single table is not possible
I have a few tables that relate to each other in such a way that they form a circle
In one of these I have a primary key, It would be called CountryID if I used english for naming the parts of my DB
Two other tables have fields that store this key as a foreign key. They are also called CountryID
The problem is these two tables should be able to connect to different Countries, but they don't
When I'm testing my question I only get the records where the countries choosen from either side are the same
This is only a small subset of the records I want this question to select. In fact I need it to select all the records
I have done circular designs before without problems, though never this small, only five tables
That's why I am curiuos about the possibility of using the same name for fields that are used to store differnet values
Do fieldnames have to be unique in a database, or perhaps just the combination of name and type
Grateful for any comments on this.
Trying to create two fields with the same name in a single table is not possible
I have a few tables that relate to each other in such a way that they form a circle
In one of these I have a primary key, It would be called CountryID if I used english for naming the parts of my DB
Two other tables have fields that store this key as a foreign key. They are also called CountryID
The problem is these two tables should be able to connect to different Countries, but they don't
When I'm testing my question I only get the records where the countries choosen from either side are the same
This is only a small subset of the records I want this question to select. In fact I need it to select all the records
I have done circular designs before without problems, though never this small, only five tables
That's why I am curiuos about the possibility of using the same name for fields that are used to store differnet values
Do fieldnames have to be unique in a database, or perhaps just the combination of name and type
Grateful for any comments on this.