隨筆-295  評論-26  文章-1  trackbacks-0

          select NVL(b.Name, ' ') AS spec, ' ' as packs,
          '' as Quant,
          '' as Price,

          ?NVL(a.feeamount,0) as amount, ' ' as cpbh,' ' as cpname, ' ' as jidw
          from ITM_Documentfee a? left join
          sys_datadictionary b on b.id=a.feeid????

          union
          select
          NVL(b.Spec, ' ') AS spec,
          NVL(b.field1,' ') as packs,
          case Quant
          ?when 0 then
          ? ' '
          ?when null then
          ? ' '
          ?else
          ?? to_char(Quant)?
          end as Quant
          ,
          case Price
          ?when 0 then
          ? ' '
          ?when null then
          ? ' '
          ?else
          ?? to_char(Price)?
          end as Price
          ,
          ? NVL(b.Amount, 0) AS amount,
          c.SerialNumber as cpbh,NVL(c.EnName, ' ') AS cpname,
          NVL(t.Symbol, ' ') AS jidw
          from ITM_SalesCommodity b
          left join CRM_Commodity c ON c.TypeID = b.CommodityTypeID
          LEFT OUTER JOIN????? BSE_MeasureStyle t ON b.QuantUnitID = t.ID


          select ISNULL(b.Name, ' ') AS spec, ' ' as packs,
          '' as Quant,
          '' as Price,

          ?isnull(a.feeamount,0) as amount, ' ' as cpbh,' ' as cpname, ' ' as jidw
          from ITM_Documentfee a? left join
          sys_datadictionary b on b.id=a.feeid????

          union
          select
          ISNULL(b.Spec, ' ') AS spec,
          isnull(b.field1,' ') as packs,
          Quant =
          case
          ?when Quant>0 then
          ? CAST( Quant AS varchar(20))
          ?else ''
          end
          ,
          Price =
          case
          ?when Price>0 then
          ? CAST( Price AS varchar(20))
          ?else ''
          end
          ,
          ? ISNULL(b.Amount, 0) AS amount,
          c.SerialNumber as cpbh,ISNULL(c.EnName, ' ') AS cpname,
          ISNULL(t.Symbol, ' ') AS jidw
          from ITM_SalesCommodity b
          left join CRM_Commodity c ON c.TypeID = b.CommodityTypeID
          LEFT OUTER JOIN????? BSE_MeasureStyle t ON b.QuantUnitID = t.ID



          大盤預(yù)測 國富論
          posted on 2007-07-27 13:44 華夢行 閱讀(105) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 阳原县| 新乐市| 鹰潭市| 绥中县| 徐州市| 阿勒泰市| 闽侯县| 关岭| 孟连| 社会| 宜兴市| 台州市| 车险| 金湖县| 临清市| 柘城县| 高阳县| 永康市| 峨眉山市| 闻喜县| 辽宁省| 合肥市| 新闻| 镇雄县| 华宁县| 彭山县| 石狮市| 右玉县| 千阳县| 陕西省| 赤峰市| 郧西县| 呼伦贝尔市| 嵊州市| 延吉市| 措勤县| 左权县| 长治市| 丰顺县| 清水县| 保定市|