现在有两个表
一个表为Product ,下有两个字段 Name FactureID 
其中Name 为 string类型
FactureID 为 int 类型另一个表为 Facture ,下面有两个字段 FactureName,FactureID 
其中FactureName为 string类型
FactureID 为 int 类型表Product的FactureID 和 表Facture 的FactureID 是对应的现在想根据表Facture 中的FactureName 对表Product 进行排序 
该如何使用SQL语句或者别的方法呢?
谢谢!

解决方案 »

  1.   

    select a.* from Product a left join Facture  b on a.FactureID = b.FactureID
    order by b.FactureName
      

  2.   

    经过我在Access上的验证
    发现下面两种语句都可以
    SELECT Product .*
    FROM Product left JOIN Factory ON Product.FactoryID = Factory.FactoryID
    WHERE (((Product.GroupID)=4))
    ORDER BY Factory.Name;SELECT a.*
    FROM Product a, Factory  b, Storage  c
    WHERE a.FactoryID=b.FactoryID AND a.StorageID=c.StorageID
    AND b.Name="xxx"
    AND c.StoragePlace="408"
    order by b.Name