Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7880533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:10:01+00:00 2026-06-03T04:10:01+00:00

im new to database design and im trying to create an ERD for a

  • 0

im new to database design and im trying to create an ERD for a pharmacy that sells products online and also accepts repeat prescriptions orders to customers.

Here is the link to my ERD:
https://i.stack.imgur.com/vmeOD.png

I’m wondering how i could only make use of only one ‘payment’ and ‘card details’ entity for both orders, so have i have 2 entities for each order. Would i be able to make a relationship between the ORDER TYPE entity and payment/card details entity.

Any help would be appreciated. thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:10:03+00:00Added an answer on June 3, 2026 at 4:10 am

    I’m trying to find a good reason forh aving both Prescription_Order and Product_Order. There should just be an Orders (pluralized because ORDER is a reserved word everywhere) table, where the Customer_Recurring_Order table (with a natural key of references to Customer and Product) breaks out the rules for a customer’s recurring orders, regardless of whether they are prescription in nature or not. Your medicine attribute properly belongs as a record in the product table.

    Also, the Card Details table should properly be linked to one or more Customer, as I’m pretty sure that card details are functionally dependent on the existence of a customer.

    Once you’ve cleaned those up, you only need one Payment or Card Details entity. A good design principle to remember is that if two entities have all the same attributes, they probably aren’t two different entities.

    Why didn’t you break out shipping information into a separate entity, Order_Shipment. Will all shipments always contain all portions of a customer’s order?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey im new to database design and having trouble trying to figure this one
I'm new to SQL and database design and trying to work out if the
I am pretty new to database design. I am building a small asp.net mvc
I'm new to database design and just wanted a few opinions as to whether
I am new to database schema design and I want to learn more about
I'm really new to database object design so please forgive any weirdness in my
What do I have to consider in database design for a new application which
I'm trying to weigh the pros and cons of a database design, and would
We're adopting MongoDB for a new solution and are currently trying to design the
We're trying to design a new addition to our application. Basically we need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.