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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:04:41+00:00 2026-05-19T03:04:41+00:00

We implement an One-to-Many relationship by adding one Table’s PK, as FK to the

  • 0

We implement an One-to-Many relationship by adding one Table’s PK, as FK to the other Table.
We implement a Many-to-Many relationship by adding 2 Table’s PKs to a third Table.

How do we implement an IS-A Relationship ?

The Entities are TECHNICIAN and ADMINISTRATIVE which both are EMPLOYEE.
I could just use an extra field in the Table
EMPLOYEE(id, name, surname, role, …AdminFields…, …TechFields…)

but i would like to explore the IS-A option.

EDIT: I did as Donnie suggested, but without the role field.

  • 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-19T03:04:42+00:00Added an answer on May 19, 2026 at 3:04 am

    I did as Donnie suggested, but without the role field, because it complicates things. This is the final implementation:

    DDL:

    CREATE TABLE Employee (
    ast VARCHAR(20) not null,
    firstname VARCHAR(200) not null,
    surname VARCHAR(200) not null,
    ...
    PRIMARY KEY(ast)
    );
    
    CREATE TABLE Administrative (
    employee_ast VARCHAR(20) not null REFERENCES Employee(ast),
    PRIMARY KEY(employee_ast)
    );
    
    CREATE TABLE Technical (
    employee_ast VARCHAR(20) not null REFERENCES Employee(ast),
    ...
    PRIMARY KEY(employee_ast)
    );
    

    ER Diagram:

    ERD

    In this model there are no Employees of Generic Type. Here, an Employee can only be Administrative or Technical.

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

Sidebar

Related Questions

I am trying to implement a one-to-many relationship using NHibernate 2.1.2 but keep getting
I have Plan table that has a one to many relationship with a Price
Suppose I have two entities: User and UserGroup . They have a one-to-many relationship
I'm pondering the best way to implement a one to many relationship in HBase.
There are two JPA entities: User and Order with one-to-many relationship. /** * User
I want to create a one to many relationship. My setup is something like:
Data in question would be mainly text with a one to many relationship (for
Usually I'm using One-to-many relationship by this way : class Study { static hasMany
I'm at a bit of a loss here. I have a one-to-many relationship between
I want to implement one-to-many concept in my application. This is the scenario: I

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.