N
Need Help
I need help designing a database. I work for a non-profit company that
offers a myriad of services to the public. Each customer that works with us
is assigned a customer ID #. I called the first table of the database
"General Information" which includes name, address, contact info, etc. In
that table i used the customer ID # as the primary key. So far this is
simple. However each customer does not use every service that we offer and
each of these services do not have a specific ID #. Up to this point i have
created tables for each of the services we offer. Each of the tables for
these individuals services I have not assigned a primary key because the
unique identifier is still the customer ID #(I think i read that this would
be considered a one-to-one relationship). I am having some trouble pulling
queries for specific data. Should this database be designed differently?
offers a myriad of services to the public. Each customer that works with us
is assigned a customer ID #. I called the first table of the database
"General Information" which includes name, address, contact info, etc. In
that table i used the customer ID # as the primary key. So far this is
simple. However each customer does not use every service that we offer and
each of these services do not have a specific ID #. Up to this point i have
created tables for each of the services we offer. Each of the tables for
these individuals services I have not assigned a primary key because the
unique identifier is still the customer ID #(I think i read that this would
be considered a one-to-one relationship). I am having some trouble pulling
queries for specific data. Should this database be designed differently?