隨筆-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



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

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


          網站導航:
           
          主站蜘蛛池模板: 阜新市| 德安县| 深水埗区| 大足县| 西和县| 兴国县| 沽源县| 汶川县| 淳安县| 洪雅县| 包头市| 聊城市| 东城区| 泸定县| 大同市| 东莞市| 泽普县| 望都县| 教育| 林西县| 辉南县| 无极县| 青河县| 高雄市| 万源市| 周口市| 长泰县| 木里| 岳普湖县| 崇左市| 德安县| 冀州市| 普定县| 长治市| 罗江县| 饶河县| 隆昌县| 乌鲁木齐市| 噶尔县| 霍邱县| 广安市|