Sybase数据库错误:无效的数据转换

时间:2017-08-17 19:43:56

标签: sql database sybase

我需要有关此查询的帮助,我正在基于某些结果进行一些计算,但我收到以下错误:

  

Sybase数据库错误:无效的数据转换。

查询如下:

SELECT
      DC.DIM_DATE.DATE_ID,
      DC.DIM_E_RAN_UCELL.RBS_ID,
      (SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestDchPsIntRabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumFachPsIntRabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestPsHsAdchRabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestPsEulRabEstablish))/720 AS '3G_DATA_ERLANG',
      (SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestCs12Establish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestAmr12200RabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestAmr7950RabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestAmr5900RabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestAmr4750RabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestAmrWbRabEstablish)+SUM(DC.DC_E_RAN_UCELL_RAW.pmSumBestAmrNbMmRabEstablish))/720 AS '3G_SPEECH_ERLANG',
      (100*(SUM(DC.DC_E_RAN_UCELL_RAW.pmTotNoRrcConnectReqCsSucc)/(1+SUM(DC.DC_E_RAN_UCELL_RAW.pmTotNoRrcConnectReqCs)-SUM(DC.DC_E_RAN_UCELL_RAW.pmNoLoadSharingRrcConnCs))*(SUM(DC.DC_E_RAN_UCELL_RAW.pmNoRabEstablishSuccessSpeech)+SUM(DC.DC_E_RAN_UCELL_RAW.pmNoRabEstablishSuccessCs64)+SUM(DC.DC_E_RAN_UCELL_RAW.pmRabEstablishEcSuccess))/(SUM(DC.DC_E_RAN_UCELL_RAW.pmRabEstablishEcAttempt)+SUM(DC.DC_E_RAN_UCELL_RAW.pmNoRabEstablishAttemptSpeech)+SUM(DC.DC_E_RAN_UCELL_RAW.pmNoRabEstablishAttemptCs64)-SUM(DC.DC_E_RAN_UCELL_RAW.pmNoDirRetryAtt)))) AS '3G_CSSR_CS'
    FROM
      DC.DIM_DATE,
      DC.DIM_TIME,
      DC.DIM_E_RAN_UCELL,
      DC.DC_E_RAN_UCELL_RAW
    WHERE
      (DC.DC_E_RAN_UCELL_RAW.HOUR_ID=DC.DIM_TIME.HOUR_ID and DC.DC_E_RAN_UCELL_RAW.MIN_ID=DC.DIM_TIME.MIN_ID)
      AND  (DC.DC_E_RAN_UCELL_RAW.DATE_ID=DC.DIM_DATE.DATE_ID)
      AND  (DC.DC_E_RAN_UCELL_RAW.OSS_ID=DC.DIM_E_RAN_UCELL.OSS_ID)
      AND  (DC.DC_E_RAN_UCELL_RAW.RNC=DC.DIM_E_RAN_UCELL.RNC_ID)
      AND  (DC.DC_E_RAN_UCELL_RAW.UtranCell=DC.DIM_E_RAN_UCELL.UCELL_ID)
      AND  
      (
       DC.DIM_DATE.DATE_ID  IN  ('2017-08-14')
       AND
       DC.DIM_E_RAN_UCELL.RBS_ID  IN ('DN1U0441')
      )
    GROUP BY
      DC.DIM_DATE.DATE_ID,
      DC.DIM_E_RAN_UCELL.RBS_ID

问题出在SELECT语句的最后一行,没有它的结果是:

DATE_ID RBS_ID  3G_DATA_ERLANG  3G_SPEECH_ERLANG
8/14/2017   DN1U0441    421.8541    33.5055

何时包含此错误:

Lookup Error - Sybase Database Error: Invalid data conversion

任何帮助? Sybase ASE数据库

0 个答案:

没有答案