select 表1.id,表1.name,表1.sex,表1.age,表2.cc,表2.tt from 表1,表2 where 表1.id=表2.id and 你的条件...

解决方案 »

  1.   

    select a.ID,NAME,SEX,AGE,CC,TT from table1 a,table 2 b
    where a.id=b.id
      

  2.   

    select 表1.id,表1.name,表1.sex,表1.age,表2.cc,表2.tt from 表1 left join 表2 on 表1.id=表2.id where  你的条件...
      

  3.   

    select a.ID,NAME,SEX,AGE,CC,TT from table1 a,
    (select distinct id,cc,tt from table2) b
    where a.id=b.id
      

  4.   

    select a.ID,a.NAME,a.SEX,a.AGE,b.CC,b.TT from table1 a,
    (select distinct id,cc,tt from table2) b
    where a.id=b.id
      

  5.   

    strsql="select a.incident,a.applier,a.department,b.costnumber,b.projectname from ULT_bxiao_head a,(select distinct costnumber,projectname  from ULT_bxiao_detail) b where a.incident=b.incident")
    在ASP中使用但出错。
      

  6.   

    t1(id ,name ,sex,age)
    t2(id, cc,  rr,  dd,  tt)
    strsql="select t1.id,t1.name,t1.sex,t1.age,t3.cc,t3.tt from t1 join (select distinct id,cc,tt from t2) t3 on t1.id=t3.id where ...."
      

  7.   

    nboys() 我使用你的方法但没找到任何数据,数据肯定存在!
      

  8.   


    select ULT_bxiao_head.incident,ULT_bxiao_head.applier,c.projectname from ULT_bxiao_head join (select distinct id,costnumber,projectname from ULT_bxiao_detail) c on ULT_bxiao_head.incident=ULT_bxiao_detail.incident
           没有找到相关数据!大侠请速答!:)