select 文件标题,c.员工姓名 作者姓名,d.员工姓名审核人姓名
from 文件审核 a,文件 b, 员工 c,员工 d
where a.文件id =b.文件id and 审核人员工编号=d.员工编号 and 作者的员工编号=员工编号

解决方案 »

  1.   

    select fileTitle 文件标题,c.stafferName 作者姓名,d.stafferName 审核人姓名
    from 文件审核 a,文件 b, 员工 c,员工 d
    where a.fileId=b.fileId and assessor=d.stafferNo and author=c.stafferNo
      

  2.   

    文件审核 表a
    文件     表b
    员工     表c
    select b.filetitle,c.staffername,a.assessor from a,b,c where
    a.fileid=b.fileid and b.author=c.staffno最简单的sql语句你都不会,你为什么不去找根绳子??
    一代大虾沦落啦。。
      

  3.   

    SELECT b.fileTitle,b.author,c.stafferName
    FROM [文件审核] a,[文件] b,[员工] c
    WHERE a.assessor='98' AND 
          a.fileId=b.fileId AND
          a.assessor=c.stafferNo
      

  4.   

    select fileTitle 文件标题,c.stafferName 作者姓名,d.stafferName 审核人姓名
    from 文件审核 a,文件 b, 员工 c,员工 d
    where a.fileId=b.fileId and assessor=d.stafferNo and author=c.stafferNo
     and assessor=98
      

  5.   

    文件审核 表a
    文件     表b
    员工     表c
    select b.filetitle,c.staffername,a.assessor from a,b,c where
    a.fileid=b.fileid and b.author=c.staffno最简单的sql语句你都不会,你为什么不去找根绳子??
    一代大虾沦落啦。。
    a.assessor 是审核人姓名吗,不是,是审核人员工编号
      

  6.   

    select 文件标题,c.员工姓名 作者姓名,d.员工姓名审核人姓名
    from 文件审核 a,文件 b, 员工 c,员工 d
    where a.文件id =b.文件id and 审核人员工编号=d.员工编号 and 作者的员工编号=员工编号
      

  7.   

    我看错啦,sorry
    应该这样
    select b.filetitle,c.staffname,d.staffname from tbla a a,tblb b,tblc c,tblc d
    where a.assessor=c.staffno and b.author=d.staffno and a.fileid=b.fileid and a.assessor=98
      

  8.   

    select b.filetitle,c.staffname,d.staffname from tbla a a,tblb b,tblc c,tblc d
    where a.assessor=c.staffno and b.author=d.staffno and a.fileid=b.fileid and a.assessor=98