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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:06:32+00:00 2026-05-12T08:06:32+00:00

Naive question with the answer No , I believe, but still would like to

  • 0

Naive question with the answer “No” , I believe, but still would like to ask.

Table_parent

pk_parent_surrogate  
parent_natural_unique_key


Table_child

pk_child_surrogate
child_natural_NOT_unique

Is that true that the only possible declarative relationship among main database vendors is

pk_parent_surrogate ----------<  pk_child_surrogate

and we can’t have declarative constraint or foreign key in other words for pair

parent_natural_unique_key -------< child_natural_NOT_unique
  • 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-12T08:06:32+00:00Added an answer on May 12, 2026 at 8:06 am

    My answer here is based on my MS SQL knowledge – although I believe the same answer is correct for ANSI standards as well, i’m not 100% sure…

    YES – you CAN do this as long as you’ve got a unique constraint on the column in your parent table that you want to use as the anchor column for the key.

    You can create a FOREIGN KEY constraint as part
    of the table definition when you create a table.
    If a table already exists, you can add a
    FOREIGN KEY constraint, provided that the
    FOREIGN KEY constraint is linked to an existing
    PRIMARY KEY constraints or UNIQUE constraint in
    another, or the same, table. A table can contain
    multiple FOREIGN KEY constraints.

    And as an example of this sort of key…

    use tempdb
    
    CREATE TABLE parent(
        pk int identity primary key, 
        candidate_key int unique not null)
    
    CREATE TABLE child(
        pk int identity primary key, 
        join_key int references parent(candidate_key))
    

    See here for more information.

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

Sidebar

Related Questions

Probably this is a naive question, but I didn't find an answer. I'm creating
I apologize for perhaps naive question but I couldn't find an answer online. I've
Naive question about Java syntax. What does <T> T accept(ObjectVisitorEx<T> visitor); mean? What would
This is probably a naive question - but I want to double check to
That might be a naive git question but here it is: Before doing a
I have a question that may be quite naive, but I feel the need
I feel it's quite a naive question I'm going to ask. Excuse me if
This is probably a naive question about XmlReader , but I haven't turned up
I know that this Question is repeated but I can't find the answer in
I started to ask this question and then figured out the answer before submitting

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.