解决方案 »

  1.   

    select t1.*,t2.Title
    from Customer t1,Organization t2
    where t1.Organization=t2.ID
    上面是内连接,可以根据实际情况改成left join。
      

  2.   

    select t1.Name,t1.Mobile,,t2.Title as Organization
    from Customer t1,Organization t2
    where t1.Organization=t2.ID
      

  3.   

    这分拿的忒容易了基础知识太差了,找本sql server基础的书先看一遍
      

  4.   


    在请问高人
    如何将0的值变为“否”,1的值变为“是”?SQL语句怎么写?
      

  5.   

    Replaced这个字段和其他表关联是否能关联出来名称?
    如果可以,参考上面的语句如果程序是写死的,0表示否、1表示是
    那么使用case when判断
    select case Replaced when 0 then '否' when 1 then '是' else '' end as Replace
    from table
    多看书,这都是最基础的东西