david7777777777
Programmer
I've read up on relationships and pretty much understand the theory. Now I need a specific example to solidify my understanding. Here's what I have: SQL 2000 database that my IT department will use to track employees, inventory, what employee has what computer, etc. I'll stick to one small detail: the relationship between the computer table and the employee table. I'm building ASP pages as the front-end.
Here are the tables and their columns, and I'll re-build them if I have to, based on your advice. When I created these tables, I did not even know enough to be concerned with the precision and scale settings. Now those are greyed out when I look at the tables in Design view in Enterprise Manager. If I need to modify these properties in order to make the relationships work, please let me know how to do that. I'm very open to any design suggestions from you who have battle scars. The primary keys are auto-generated integer fields and the Indentity property is set to "Yes" for these columns in every table.
What I need is for you to let me know what I need to do in order to create the appropriate relationship between the Employee field in the tbl_desktops table and whatever field in the tbl_employees table that is appropriate. Thanks for your help.
tbl_employees
ID (Primary Key, integer)
LastName (varchar)
FirstName (varchar)
MiddleInitial (varchar)
Phone (varchar)
tbl_desktops
ID (Primary Key, integer)
AssetNumber (varchar)
Employee (varchar)
DataPort (varchar)
Manufacture (varchar)
Here are the tables and their columns, and I'll re-build them if I have to, based on your advice. When I created these tables, I did not even know enough to be concerned with the precision and scale settings. Now those are greyed out when I look at the tables in Design view in Enterprise Manager. If I need to modify these properties in order to make the relationships work, please let me know how to do that. I'm very open to any design suggestions from you who have battle scars. The primary keys are auto-generated integer fields and the Indentity property is set to "Yes" for these columns in every table.
What I need is for you to let me know what I need to do in order to create the appropriate relationship between the Employee field in the tbl_desktops table and whatever field in the tbl_employees table that is appropriate. Thanks for your help.
tbl_employees
ID (Primary Key, integer)
LastName (varchar)
FirstName (varchar)
MiddleInitial (varchar)
Phone (varchar)
tbl_desktops
ID (Primary Key, integer)
AssetNumber (varchar)
Employee (varchar)
DataPort (varchar)
Manufacture (varchar)