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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:16:55+00:00 2026-06-04T07:16:55+00:00

I have a table design doubt. First table called products_mast contains CONTRACTS_ID (PK), AGREEMENT_NO,

  • 0

I have a table design doubt.

First table called products_mast contains

CONTRACTS_ID (PK),
AGREEMENT_NO,
SUPPLIER_CODE,
START_DATE,
END_DATE
PROD_EXTENSION_NO

Second table called products_det contains

HIRING_ID (PK),
CONTRACTS_ID(FK),
PRODUCT_CODE,
RATE

The above tables are linked with CONTRACTS_ID. Start Dates and End Dates are in one table and product rates in second table.

In my third table TRANSACTIONS contains,

TRANS_ID,
TRANS_REF_NO,
HIRING_ID FK (products_det),
REMARKS

One issue is normally the agreement_no can get extended for a period with new product rates for the extended agreement. So I add those details in
products_mast and products_det with same agreement no with extension 002 (for new extension). In TRANSACTIONS how can I refer to correct
rates if I am linking HIRING_ID with products_det because HIRING_ID gets incremented with new extension. How can I resolve this issue?

  • 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-04T07:16:56+00:00Added an answer on June 4, 2026 at 7:16 am

    I’m not quite sure I follow exactly what you are suggesting regards agreement no value of extension 002 (new extension) however if it’s a case of uniquely identifying the transaction per agreement no, what about adding a FK to the table Transactions linking it back to the AGREEMENT_NO field in the products_mast table?

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

Sidebar

Related Questions

I have a table design, used by recruiter to upload profiles. Each row contains
Is there any name for the following DB table design: Basically we have generic
I have a 3 column layout using table-less design. <div id=main> <div id=left></div> <div
I have the following database design: Employee Table: Username, Name, DivisionCode Division Table: SapCode,
I have the following database design: Employee Table: Username, Name Quiz Table: QuizID, Title,
I have a schema design that looks like this: Table: User Row Column Family
I have a question regarding the design of two tables. Table 1: The main
In SQL Server, I need to design a User table. It should have a
Say I have a table with a field called ordernum that denotes the order
Say I have table with two columns: Name, Age. I want to design 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.