I'm doing a project on .net (visual studio) in which i'm using sql database. I want to know how can I compare between many values at the same time. Is there an easy & simple way to do it?
The compare between two tables. For example:
Table 1 (student) has:
Name
Id
Book1 (art for example)
Book2 (math)
Book3 (math 2)
Book4 (history)
Book5 (physics)
Table 2 (teacher) has:
Name
Id
Book1
Book2
Book3
Book4
Book5
For each student, I need to compare his books (name of the book itself) by the teacher's books (to see if there is matching). Also, is there a more efficient to do my database?
Any suggestions?