How to join two tables by multiple columns in SQL?

后端 未结 5 1011
既然无缘
既然无缘 2020-12-29 06:03

I have two tables named Evaluation and Value.

In both tables, there are four columns. But three of the four are the same. In other words, th

5条回答
  •  青春惊慌失措
    2020-12-29 06:59

    You would basically want something along the lines of:

    SELECT e.*, v.Score
      FROM Evaluation e
    LEFT JOIN Value v
    ON v.CaseNum = e.CaseNum AND
    v.FileNum = e.FileNum AND
    v.ActivityNum = e.ActivityNum;
    

提交回复
热议问题