Quote:
|
Originally Posted by jacobo
|
I will ask one silly question, just in case...
Do you need to produce the diagram itself (graphic) of the structure in the DB?
If (firstquestion == true) then I dont think that the tools supports graphical design.
If you need to recreate the structure then yes you can do it with that tool with no problems at all.
To be able to relate the tables you need a field know as a foreign key, which is nothing more than keeping your register's primary key from the first table stored in the register of the second table.
Thus tables would look like so:
t_department
=============
pk_department
... (more fields)
t_project
=============
pk_project
fk_department <---- This is where you store the pk_department of the department that carries this project
... (more fields)
Through the use of Relations by means of Foreign Keys you can have nifty things like Referential Integrity.
If I used any terms you did not cover yet, feel free to ask what they are or their use.
Hope this is what you were asking for. If not, again, feel free to point me to it.
PD: important, due to Referential Integrity t_department must be created before t_project, and registers must be stored first into t_department than t_project.
Good luck.