Hello,
I'm trying to design a very simple database and am having a great deal of trouble with it. This is my first attempt at making a database. Essentially, right now at work we are tracking customer orders using a spreadsheet. This is very cumbersome and inefficient. I told my boss that a database would be a much better idea and that I would try to put one together.
What I need to do is be able to enter the customers first & last names, the date ordered, date shipped, item, shipping method, and a field for comments. Seems like it should be simple and straight forward, but I'm having a great deal of trouble with it.
I thought 2 tables would be fine. One for customers names and another for the order info. The problem I'm having is trying to create a relationship between the two, so that after the customer is in the database, any orders can be written to the orders table without duplicating the customers names. I thought Customer ID would be a good key to use in each table to relate them, but if I try to enter more than one order per customer, I get an error saying I'm duplicating the key. What am I dong wrong. This should be so simple and has become very frustrating. Any help you could give would be much appreciated. Remember, I'm a newbie (never did this before), so please use plain speak.
Thanks in advance.
I'm trying to design a very simple database and am having a great deal of trouble with it. This is my first attempt at making a database. Essentially, right now at work we are tracking customer orders using a spreadsheet. This is very cumbersome and inefficient. I told my boss that a database would be a much better idea and that I would try to put one together.
What I need to do is be able to enter the customers first & last names, the date ordered, date shipped, item, shipping method, and a field for comments. Seems like it should be simple and straight forward, but I'm having a great deal of trouble with it.
I thought 2 tables would be fine. One for customers names and another for the order info. The problem I'm having is trying to create a relationship between the two, so that after the customer is in the database, any orders can be written to the orders table without duplicating the customers names. I thought Customer ID would be a good key to use in each table to relate them, but if I try to enter more than one order per customer, I get an error saying I'm duplicating the key. What am I dong wrong. This should be so simple and has become very frustrating. Any help you could give would be much appreciated. Remember, I'm a newbie (never did this before), so please use plain speak.
Thanks in advance.