Search code examples
sqlcsverd

Professor and department evaluation system ERD


I created a ERD (dont know if correct) but the real problem is all about CSV file as you can see guys I have three tables, Student(top left corner), teacher(3rd from top left) and course table(2nd from top) now our system can upload a CSV file for proff and student the problem is I dont know how to upload a file for course that has a relation for tables(proff and stud).

unreadable hand-drawn ERD :(


Solution

  • If i understand correctly you want to Bulk-Load CSV files to tables with foreign key constraints.

    See this question and accepted Answer

    How to use BULK INSERT when rows depend on foreign keys values?