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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:27:16+00:00 2026-06-14T16:27:16+00:00

Below I have two tables, Customer and Currency. Scenario : Each customer must have

  • 0

Below I have two tables, Customer and Currency.

Scenario : Each customer must have one currency defined for all their transactions. I have placed a currency_id column which associate the currency to the customer. Below are some question arise in my mind. Mybe it is silly question. But I would like to clear myself.

  1. View from Customer : One customer has one currency
    enter image description here

  2. View from Currency : One currency can have 0 or more customer.
    enter image description here

Here the question. In this types of scenario, how we should take the issue? We should see from customer (1) or from currency (2). Anybody can explain me this??

EDIT : My question is in terms of designing the ERD.

  • 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-14T16:27:17+00:00Added an answer on June 14, 2026 at 4:27 pm

    (Tossing this in after upvoting @Gilbert’s reply and reading the ensuing discussion.)

    A relationship between two tables goes both ways: table X is related to table Y, and table Y is related to table X. For your case, it’s excactly as you said:

    • One customer has one currency
    • One currency can have 0 or more customers

    Both verbal descriptions are correct.

    With regards to ERD representation, your second case best represents this. Unless you’re an academic, don’t get bogged down with representational minutiae, there are dozens of very similar notations out there. So long as it shows “One to zero or more”, you’re good.

    As for implementation, I think you’ve already got that down pat: Parent table has Primary key (CurrencyId), child table has its own Primary key (CustomerID) and a foreign key (CurrenctyID) related back to the parent table.

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

Sidebar

Related Questions

I have two tables as defined below: EMAILS ID SUBJECT BODY 1 Test1 blah
I have one query that I have below two tables .. CREATE table EMPLOYEE
I have two tables described below. What I need is a single query that
I have two tables like the ones below. I need to find what exchangeRate
I have two tables names book_list and book_category . Schema is like below: book_list
I have created two tables & inserted values as shown below . Table 1
I'm using SQL Server 2008. Let's say I have two hypothetical tables like below:
I have 10 tables in my database(MySQL). two of them is given below tbl_state
I have two tables A and B as defined bellow. create table A (
I have two tables, Customer and CustomerPhone. Single record in Customer can have multiple

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.