首页 > 解决方案 > SQL 更新引用表中的值

问题描述

我有下面的两个表。

在此处输入图像描述

我需要帮助获得以下输出:

在此处输入图像描述

标签: sql

解决方案


select distinct t.No,
       t.ReportDate,
       t.OpNo,
       r.Definition as MethodOper
from tblRefCodes r
 inner join table1 t on t.Methodoper = r.Code

推荐阅读