Jump to content

Help designing database!


thetylercox

Recommended Posts

The objective: Design a database for a local store in town to keep up with customers and their purchases.Not an online store!

 

The issue i'm having: How to handle the issue of repeat customers. So I have the fields they want to keep up with but on the return trip I don't want to delete the old info instead

I want to add to it. So when the record is pulled for this person it will show all there past purchases but only on one record. I had the idea of making another database for purchases and using unique keys I would query the purchased database! Enough with the rambling. I'm just open for ideas I am a bit of a nob when it comes to the designing and would kindly like some advice links something to point me in the right direction!

 

Thanks in advance

Tyler Cox

Link to comment
Share on other sites

You need separate tables for customer information and their purchases. Each item purchased would be stored in the purchases table with, at a minimum, the primary key id of the user, the quantity and id of the item purchased, date, unit cost, etc.

Link to comment
Share on other sites

You'll probably have an easier time if you Google "database normalization" and apply those principles to the requirements of our application. For me to try to explain anything much beyond the basics would probably just confuse you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.