I am studying MySql using MySql Workbrench to create a diagram of my database and the following situation arose: Imagine I have the table_A and the table_intensity, where:
Structure of table_A: id, name, intensity_1, intensity_2
Structure of the table_intensity: int_intensity, description_intensity
My question is: I would like the fields intensity_1 and intensity_2 of table_A to receive the intensity_identity of the intensity table, in a cardinality relation from 1 to 1. That is, create two foreign keys of the same table. It is possible? Is this the right way?
I'll try to create a more 'real' scenario.
Imagine a scenario in the field of oceanography, where table_A, in addition to the primary key, also needs to keep the direction of the wind (wind direction) and the direction of the wave (dir_condulation). Knowing that the table_ventos (id_vento, desc_vento) has all the possible directions, and both the fields dir_vento and dir_ondulacao are also winds, would it be possible for them to hold the id_vento, in the future I will rescue the dsc_vento from the table wind from them ??
Have you more or less tried the idea?