select '缩合' , '78#' , fdecimal as 一月  from t_BOS200002318,t_BOS200002318entry
where t_BOS200002318.fid=t_BOS200002318entry.fid and t_BOS200002318.fcombobox4='1月'select fdecimal4 as 二月  from t_BOS200002318,t_BOS200002318entry
where t_BOS200002318.fid=t_BOS200002318entry.fid and t_BOS200002318.fcombobox4='2月' select fdecimal4 as 三月  from t_BOS200002318,t_BOS200002318entry
where t_BOS200002318.fid=t_BOS200002318entry.fid and t_BOS200002318.fcombobox4='3月' 

解决方案 »

  1.   


    select '缩合' , '78#' , fdecimal as 一月 from t_BOS200002318,t_BOS200002318entry
    where t_BOS200002318.fid=t_BOS200002318entry.fid and t_BOS200002318.fcombobox4='1月'
    union all
    select fdecimal4 as 二月 from t_BOS200002318,t_BOS200002318entry
    where t_BOS200002318.fid=t_BOS200002318entry.fid and t_BOS200002318.fcombobox4='2月' 
    union all
    select fdecimal4 as 三月 from t_BOS200002318,t_BOS200002318entry
    where t_BOS200002318.fid=t_BOS200002318entry.fid and t_BOS200002318.fcombobox4='3月' 是这个意思?
      

  2.   

    第一个select 结果 
    缩合,78#,一月
                55
    第二个 二月
            44
    最终结果
    缩合 78# 一月 二月 三月 四月……
              55   44  33  22
      

  3.   

    本帖最后由 josy 于 2011-06-16 20:54:03 编辑