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

  • Home
  • SEARCH
  • 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 7442045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:06:59+00:00 2026-05-29T11:06:59+00:00

I need your help with my database design. I’m trying to develop a Result

  • 0

I need your help with my database design. I’m trying to develop a Result Application whereby teachers will be able to compute the results of various students in 5 different levels (Year 1-5). Also all students are required to take some amount of courses as they progress, and no student will be registered twice and no student will be able to register for two courses either at there present level of in the future.

I have the following tables in my:

Database: RESULTS
-----------------

Table: STUDENTS
        This takes care of the student registration validation 
        and avoiding duplication)
 - studentID
 - first_name
 - last_name
 - other_name

Table: COURSES
        This is preloaded to the database, but it can be edited 
        to suit the needs of the user
 - courseID
 - course_code
 - course_title
 - course_unit

Table: SCORES
        This takes entries from the STUDENTS and COURSES table, 
        so there wouldn't be any occurrence of a student taking 
        the same course more than once
 - scoresID
 - courseID
 - studentID
 - semesterID
 - score
 - grade
 - remarks

The YEAR tables are what I’ve got concerns about, they are supposed
to be for all the courses meant for Year 1 to 5 respectively,
so that courses registered by any student will go
into the respective year.

Tables: YEAR1, YEAR2, YEAR3, YEAR4, YEAR5
 - courseID
 - studentID
 - score
 - grade
 - remarks

Table: SEMESTER
        This takes care of the semester courses identity.
 - semesterID 
   (year1_semester1, year1_semester2, 
    year2_semester1, year2_semester2, 
    year3_semester1, year3_semester2, 
    year4_semester1, year4_semester2, 
    year5_semester1, year5_semester2)

In every table, the tableID is unique.

Please tell me what else should I add to or remove from the database design.

  • 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-29T11:06:59+00:00Added an answer on May 29, 2026 at 11:06 am

    Tables STUDENTS and COURSES are OK.

    In case of SCORES the column scodeID is probably not necessary as you can use courseID and studentID columns as composite primary key.
    A question regarding this table: will the students be able to take an exam/test twice (e.g. first failed)? If yes, should both scores be recorded or only the final score? The current design does not allow more than one score.

    I am not sure if SEMESTERS table is really necessary. Since you do not plan to store additional information about a year/semester pairs (i.e. only year and semester would be stored, no description or other details), you could simply use two numeric columns in SCORES (instead of semesterID): year and semester. Both of these would have a check constraint on them; the one on yearwould allow only values 1 to 5; the other on semester would allow only 1 and 2. The separate table would be useful only if you wanted to add more details to the semesters.

    The YEAR1 … YEAR5 tables: I think there should be only one table with a year column to allow you to separate the years. Having multiple tables to store the same records structure will lead to a lot of extra coding.
    And I am not sure if this/these tables is/are necessary at all. The information that this/these tables would store is already stored in the SCORES table. If you rename the SCORES table to COURSES_TAKEN and leave the score and grade columns initially empty (to show that the students took the course but do not yet take the exam/test) you can have the functionality of SCORES and YEARx tables in one.

    Finally, you wrote: “no student will be registered twice and no student will be able to register for two courses either at there present level or in the future“. One thing I surely learned during my career is that words like “never” and “always” are not valid in the long term. If you develop a good solution and the end users like it, they will want a lot of new things and changes it; even new things and changes of which that they previously stated that they will never need. So, always try to keep your design flexible to be able to handle any crazy new requests easily.

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

Sidebar

Related Questions

I've some questions .. and I really need your help. I have an application.
ive being trying to cope with this problem but still. I need your help.
I'm new to bash scripting so would need your help. I am trying to
I really need your help. I have a database with latitude and longitude data,
I am a bit confused and need your help. I have a database that
I need your help :) I have a table in a database (SQL Server
I need your help, For example I have a decimal type variable and I
I need your help to define a special case in XML schema: A sequence
I really need your help in my issue very quickly and it's too close
I really need your help for this. I am relatively new to programming and

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.