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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:28:29+00:00 2026-06-13T04:28:29+00:00

I am having a issue in identifying the relationship I have the following scenario

  • 0

I am having a issue in identifying the relationship I have the following scenario

  • A teacher can review many paper
  • A paper can be review by 4 teachers
  • A teacher can create a paper
  • A paper can have statuses (under review, approved)
  • A subject head who is also a teacher will select the teachers to review the paper.
  • A teacher can have many types (i.e. can be author of the paper, reviewer, subject head, etc)

I have identified the following tables:

  • Teacher
  • Paper
  • TeacherType

Now as teacher can be of many types and many teachers can have same type, the relation is many to many, this will be broken into one to many, so there will be a table TEACHER_TYPE (the junction table). I have to identify each roll of the teacher differently how will I use this, for e.g. a teacher authoring a paper and the same time reviewing paper by some other teacher. So will I use the primary keys in TEACHER_TYPE to record the reviewing and authoring process differently? or the same id in Teacher table with some different approach?

  • 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-13T04:28:30+00:00Added an answer on June 13, 2026 at 4:28 am

    I would make a 4th table PAPER_TEACHER, this would make you question much easier.

    TABLE TEACHER T_ID
    TABLE PAPER P_ID
    TABLE TEACHER_TYPE T_ID and TT_Type
    TABLE PAPER_TEACHER T_ID, P_ID, AND PT_Status

    SELECT *
    FROM PAPER t1
    INNER JOIN PAPER_TEACHER t2 on t1.P_ID = t2.P_ID AND t2.PT_status = “under review”
    INNER JOIN TEACHER t3 on t2.T_ID = t3.T_ID
    INNER JOIN TEACHRE_TYPE t4 on t3.T_ID = = t4.T_ID AND t4.TT_Type = “reviewer”

    Where you ask for the PP_status, you can use all kind of things.

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

Sidebar

Related Questions

Having an issue here that I have tried everything I can think of but
Hi guys I am having issue I have this query: SELECT * FROM useraccount
Just started mongo and started having issue with querying already. i have a collection
I am having issue with memory after running many times my app. java.lang.OutOfMemoryError: bitmap
We have a device that support SAE J1939 interface and having issue with finding
I'm having issues with the following case statement. I figure I can do it
having issue with the explode, i have simple text file and each line is
Having issue with my navigation. How can I prevent it? My CSS file looks
Alright, so I am having issue with the following.. I am trying to do
I am having issue with git pull.I have commited my changes in local repo.

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.