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 9267191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:29:37+00:00 2026-06-18T14:29:37+00:00

Guys I am developing my project in Mysql Workbench and have a confusion about

  • 0

Guys I am developing my project in Mysql Workbench and have a confusion about my project.

I have few questions:

How do we manage different types of payments?
I mean my DB has a payment table and my system has 3 modes for payment.

1]Credit Card(Will store the respective information)

2]DebitCard(Will store the respective information)

3]Cash on Delivery(the payment is done in cash and will be updated later)

I have uploaded a image here to tell you what I was thinking

Bill table-Consists of bill generation and stuff.
Payment table-As to when the payment is done (I have added a type id and fks from all table so that I can use a if/else clause on the select method.) is this good practive?
Home table- is the cash on delivery thong

Is there any better method to do this? Please help.

enter image description here

I have further modified the image and have chucked out the type condition and instead I am using the if(payment_type) clause to access the respective DB, I believe this should get the job done. Is there any fault in this? Please help

enter image description here

  • 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-18T14:29:39+00:00Added an answer on June 18, 2026 at 2:29 pm

    Indeed. There is. I would go with inheritance.

    Here a simple diagram:

    enter image description here

    You need to include your attributes and notations (oneTOone, manyTOone,…). Do some research for inheritance.

    Look here: http://de.scribd.com/doc/7122945/ER-Diagram
    And there are more if you google or stackoverflowle.

    Regards 😉

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

Sidebar

Related Questions

So we are a few guys developing this product that is communicating with a
I guys, I developing a utility in python and i have 2 object the
i have another piece for more advanced guys than me ;) I am developing
I am developing a project that lately have been taking off with increased popularity.
Ok guys I am developing an iPhone app I have a Model class which
Ok guys. I've begun developing a little sparetime project that might become big someday.
Hey guys i am new to android development, I am developing a project which
Hey guys! I have a tumblr app that I am developing, and I have
Some programmers here have been developing a project in VB6, and they say they
hi guys i have been developing android app that should match most of the

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.