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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:41:29+00:00 2026-06-16T01:41:29+00:00

Is database derived value the same as foreign key? Based on connoly and begg

  • 0

Is database derived value the same as foreign key?

Based on connoly and begg books, fourth edition page 352 derived value is
An attribute that represents a value that is derivable from the value of a related attribute or set of attributes, not necessarily in the same entity type.

If we have 2 table such as, CUSTOMER and ORDER,

Customer
- Id_Cust
- Name
- Phone

ORDER
- Order_id<
- id_cust

Can we say “ORDER.id_cust is derived from Customer.id_cust” ?

Actually, I’m really confused about the concept above.

  • 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-16T01:41:30+00:00Added an answer on June 16, 2026 at 1:41 am

    No, foreign keys and derived values are two different things.

    product  quantity  price  subtotal
    --
    ACH123   5         $1.50  $7.50
    

    In the simplified table above, “subtotal” is a derived value. It’s derived from “quantity” and “price”. (By multiplying them together.)

    Database designers usually don’t store derived values without using a CHECK() constraint or a trigger to make sure the derived value is always correct. In the table above, updating the quantity to 4 would make the derived value “subtotal” incorrect. A CHECK() constraint can prevent an update to “quantity” unless the update also has the correct value for “subtotal”. A trigger can automatically update “subtotal” when either “quantity” or “price” changes.

    CHECK() constraints are usually a better choice.

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

Sidebar

Related Questions

Database setup (MySQL) table: top_fives id, uid, first, second, third, fourth, fifth, creation_date 1,
Database row IDs are tied to the URLs like this: The page for row
I have the following EF class derived from a database (simplified) class Product {
I'm doing some statistics based on a database of states. I would like to
I generated a Visual Studio 2010 entity data model derived from a (mysql) database
I've got alot of beans with attributes, which are derived from database tables with
database name customdata jobNo CustomerName Country Tel Item 1 John USA 045 Mouse 2
Database is like: table book: book_id, title table wrote: book_id, author_id, author_order table author:
Database : Oracle 11g VS 20120 Provider: ODAC 11.2 Release 4 and Oracle Developer
Database is OracleXE and here is the problem: data gets entered in tables UPS

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.