Diseño de base de datos para relaciones [cerrado]

I have 3 tables Table1: Plant Table

PlantId(Primary key)

Plantname

and some other fields

Table2 :Inputfiles

Plantname,Filename

PlantId(foreign key) references PlantId(Plant)

Table 3; InputData

Id.

y otros campos

I need to design it such a way that one plant can have many inpufiles So this is a 1-m between Plant Table and Inputfiles tables

Now when the user selects a inputfile from table2, all the data related to the input file is stored in Inputdata table3.

What should be the relation between table2(input files) and table3(inputdata)

¡Gracias

sol

preguntado el 03 de mayo de 12 a las 20:05

1 Respuestas

A 1-1 relationship should exist between inputfiles and inputdata.

Based on your description of the problem, I would have inputfiles have the inputdata.id as a foreign key.

contestado el 03 de mayo de 12 a las 21:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.