I have a table that will be populated with machines of a net we have. And we
have more then 1 domain, so we thought about putting a seperate table with
the domains, and a reference in the nodes table to the apropiate domain.
The question is, should I put an SERIAL field in the domain table and use
that as the PK, and use an INT reference in the nodes table?
Or is it a good idea to just leave the domain name (a CHAR(30) field) in the
domain table and make the node.domain a CHAR(30) that references to
domain.name?
What would be the best approche?
Saludos... :-)
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica Universidad Nacional
del Litoral
-----------------------------------------------------------------