Database Schema for School

Kmcnet 1,066 Reputation points
2022-11-02T11:22:37.767+00:00

I am tasked with helping to develop a system for managing students and parents in a school. One of the key components to this is being able to define and track relationships. The obvious examples are tracking active students. But I need to account for parents who may be previous students. Grandparents. What about divorced or separated parents who may have children with different persons? My initial instinct was to construct a table of persons with an ID, LastName, FirstName, Date of Birth. Then a second table of relationships with a one-to-many structure where there would be the person ID linking to another person ID with the relationship type. I'm hoping someone with more experience in this type of application would be able to provide guidance. Any help would be appreciated.

Developer technologies Transact-SQL
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. NikoXu-msft 1,916 Reputation points
    2022-11-03T02:57:47.277+00:00

    Hi @Kmcnet ,

    You can create a student table with fields including ID, name, gender, address, phone, email.
    And then create a parent table with student ID, parent name, and phone.

    Best regards
    Niko

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.