Create View GRCJ As Select 身份证号,姓名,岗位编号,岗位名称,笔试成绩,面试成绩,笔试成绩*笔试成绩比例/100+ 面试成绩*(1-笔试成绩比例/100) As 总分 From YPRYB Natural Join GWCJB Natural Join GWBOrder By 岗位名称,总分 DESC
Create View GWTJ As Select 岗位编号,岗位名称,人数, Count(*) As 申报人数,Max(笔试成绩*笔试成绩比例/100+ 面试成绩*(1-笔试成绩比例/100)) As 最高分, AVG(笔试成绩*笔试成绩比例/100+ 面试成绩*(1-笔试成绩比例/100)) As 平均分 From GWB Natural Join GWCJB Group By 岗位编号