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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:53:05+00:00 2026-05-23T15:53:05+00:00

Take the following database tables |========| |user | |========| |id | |username| |password| |========|

  • 0

Take the following database tables

|========|
|user    |
|========|
|id      |
|username|
|password|
|========|

|=========|
|blog     |
|=========|
|id       |
|date     |
|content  |
|author_id|
|=========|

blog.author_id is supposed to connected to a particular user.id, whichever user who wrote the blog entry obviously.

My question is with regards to 1:1, 1:n identifying and non-identifying relationships… I don’t really understand them very much. Should this relationship be one of these types of relationships or not? And if so, which one? And what is the advantage of this?

  • 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-23T15:53:05+00:00Added an answer on May 23, 2026 at 3:53 pm

    In this example, there’s a 1:1 relationship between a blog record and an author. The reason they exist as separate entities/tables is the grouping of information — user related stuff doesn’t belong with a blog record, and it could be duplicated if someone writes more than one blog.

    The reason you want that implemented as a foreign key constraint is because the constraint ensures that the author for the blog record exists in the user table. Otherwise, it could be nonsense/bad data. The foreign key doesn’t stop duplicates — you’d need a primary or unique key for that — the foreign key only validates data.

    Now that Nanne clarified the identifying/non-identifying terminology for me, the blog.author_id would be the identifying relationship. Because it’s identifying who (what user record) the author is.

    The id column in both tables can be assumed to be be the primary key, because an artificial/surrogate key is the most common primary key. Which makes these columns the non-identifying relationship…

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

Sidebar

Related Questions

I have the following scenario: I have a database with a particular MyISAM table
I have the following tables in my database: Employee Table which consists of Name,
I have a database with the following tables: create table Categories ( Id int
I have a database consisting of the following tables: SourcesA: source, country, language SourcesB:
Take the following snippet: List<int> distances = new List<int>(); Was the redundancy intended by
Take the following two lines of code: for (int i = 0; i <
Take the following string as an example: The quick brown fox Right now the
Take the following C# class: c1 { event EventHandler someEvent; } If there are
Take the following generics example import java.util.List; import java.util.ArrayList; public class GenericsTest { private
Take the following function: DataTable go() { return someTableAdapter.getSomeData(); } When I set a

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.