select 客户名,货物名称,时间  from 出庫  inner join 
  客戶  on(客戶id=客戶id_1)  
 inner join  貨物 on(貨物id_2=貨物id)

解决方案 »

  1.   

    select a.客户名,c.货物名,b.时间
    from 表1 a,表1 b,表1 c
    where a.客户id=b.客户id_1
    and b.货物id_2=c.货物id
      

  2.   

    更正
    select a.客户名,c.货物名,b.时间
    from 表1 a,表2 b,表3 c
    where a.客户id=b.客户id_1
    and b.货物id_2=c.货物id
      

  3.   

    ---orselect a.客户名,c.货物名,b.时间
    from 表1 a
    inner join 表2 b
    on a.客户id=b.客户id_1
    inner join 表3 c
    on b.货物id_2=c.货物id
      

  4.   

    select a.客户名,c.货物名,b.时间
    from 表1 a,表2 b,表3 c
    where a.客户id=b.客户id_1
    and b.货物id_2=c.货物id
      

  5.   

    select 客户名,货物名称,时间  from 出库  inner join 
      客户  on(客户id=客户id_1)  
     inner join  货物 on(货物id_2=货物id)
      

  6.   

    select a.客户名,c.货物名,b.时间
    from 表1 a,表2 b,表3 c
    where a.客户id=b.客户id_1
    and b.货物id_2=c.货物id
    order by a.客户名
      

  7.   

    select 客户.客户姓名,(货物信息.货物名称+货物信息.货物规格) as 货物名称,出库单.出库时间,出库单.出库数量 
    from 出库单,货物信息,客户 
    where (出库单.货物编号=货物信息.编号)  and (客户.编号=出库单.客户编号)
    请问这句有什么问题吗?