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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:52:41+00:00 2026-05-17T02:52:41+00:00

When mapping an ER diagram to a relational schema, my textbook says that in

  • 0

When mapping an ER diagram to a relational schema, my textbook says that in step.. whatever.. a new relation S should be created for multivalued attributes. But if the multivalued attribute is the primary key of R… that leaves the R with no primary key and S with no primary key?

  • 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-05-17T02:52:41+00:00Added an answer on May 17, 2026 at 2:52 am

    This is an excellent question and something that always bothered me about the textbook explanations of how to eliminate “complex” types.

    The question you need to ask is: What is being identified by the sets of values? What are you trying to model? Most database architects working with SQL would probably say that you ought to invent a new attribute to identify the sets of things that would have made up your multivalued attribute.

    Another solution is to embrace “complex” types as first class attributes in their own right – not “multivalued” attributes but sets or arrays that can be assigned to a variable as a single value just like any other value. The Tutorial D language permits relation-valued types withing relations. e.g.:

    VAR r BASE RELATION {foo RELATION {bar INTEGER} } KEY {foo};
    

    where foo is a relvar nested within r.

    SQL however doesn’t support anything like this. Nested tables are supported in SQL but are not usually allowed to be part of keys so in SQL you always have to create a new identifying attribute. In a true RDBMS you arguably shouldn’t have to create another attribute because any supported type ought to support being part of a key – if it didn’t then you wouldn’t even be able to project on that attribute because the result wouldn’t contain a key.

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

Sidebar

Related Questions

A logical coordinate to screen coordinate mapping is set up so that a diagram
Can someone explain, in layman terms, what is Object/relational mapping(ORM) in relation to Hibernate
So upon mapping a memory space with MmMapIoSpace , I noticed that past a
I just gave a database diagram for a DB I created to our head
Mapping a Set[String] to attributes of a Set[Elem] works fine with one attribute, but
I have an NHibernate mapping that makes use of a <database-object> element that makes
Repository pattern is used to abstract from particular database and object-relation-mapping technology(like EF) used.
I want to make something akin to a diagram editor - an application that
Mapping database with Hibernate. We should use Double with @NotNull constraint Or use the
I have a mapping application that needs to draw a path, and then display

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.