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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:55:28+00:00 2026-05-12T06:55:28+00:00

I read my notes and I am now unsure about the keys. My logical

  • 0

I read my notes and I am now unsure about the keys.

My logical diagram

alt text http://files.getdropbox.com/u/175564/db/db-11.png

This table should be in line with the following physical ERD

alt text http://files.getdropbox.com/u/175564/db/db-22.png

I have only one foreign key in the table Question.

I would like to know

  • should the question-id and question-tag in the table Question-tag-xref, AND question-id and answer in the table Answers be also foreign keys?
  • 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-12T06:55:28+00:00Added an answer on May 12, 2026 at 6:55 am

    Masi – Logical models don’t usually contain data type (string, int, etc) information, but do indicate if the attribute (becomes a column in the Physical model) is optional (able to be null or not).

    That said, yes – the QUESTION-ID and QUESTION-TAG columns would be foreign keys in the QUESTION-TAG-XREF table. Here’s a physical view of QUESTION-TAG-XREF:

    QUESTION-TAGS-XREF

    • QUESTION-ID (pk, fk relationship with QUESTIONS table)
    • QUESTION-TAG-CODE (pk, fk relationship with QUESTION-TAG table)

    Both columns are the pk to ensure you can’t have duplicate tags for a given question.

    You are correct that QUESTION-ID would be a foreign key in the ANSWERS table, in reference to the QUESTION table.

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

Sidebar

Related Questions

Read about Server push here . I want to push data to client from
Read about the issue in this stackoverflow question . Still have the same issue
I read an article about a regular expression to detect base64 but when I
I have XElement object which is my XML tree read from XML file. Now
I wish to avoid os.walk, i am using a recursive function to read files
According to these release notes , Json.NET now supports the SerializableAttribute: Json.NET now detects
I have read so much (dozens of posts) about one thing: How to unit
I read that Nodes () emits all the nodes including sub. and DescendantNodes ()
I want to read some nodes of a XML file and show their values
NOTE: I have read Routing From the Inside Out AND the Engine Yard blog

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.