SelfAnswers と Employee の 2 つのテーブルがあります。次のクエリを実行する場合:個別の結果を返したい。
SELECT s.Id,s.EmployeeId,e.NAME,e. Department
FROM SelfAnswers AS s Inner Join Employee As e ON s.EmployeeId=e.EmployeeId
出力は
Id EmployeeId NAME Department
1 100 adam Exam
2 100 adam Exam
3 100 adam Exam
4 100 adam Exam
5 101 smith Exam
6 101 smith Exam
7 101 smith Exam
8 101 smith Exam