Quantcast
Channel: Toad Data Point Forum - Recent Threads
Viewing all articles
Browse latest Browse all 2544

Case statement issue (instead of cross connection query)

$
0
0

Is this even possible? Instead of a cross connection query from excel or I guess you can call it vlookup, I want to create a "case when then statement" that is searching a specific word in the table (Finding a word in the table that is not generated yet.)

When I execute the sql below it is giving me this error.

"[Sybase][ODBC Driver][Sybase IQ]Column 'GNL00347_7R_1_DB' not found"


SELECT  DC_E_ERBS_EUTRANCELLFDD_RAW.DATE_ID  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.HOUR_ID  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.MIN_ID  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.ERBS  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.EUtranCellFDD  
    , SUM(DC_E_ERBS_EUTRANCELLFDD_RAW.pmRrcConnEstabAtt) AS Sum_pmRrcConnEstabAtt   
    , CASE WHEN DC_E_ERBS_EUTRANCELLFDD_RAW.EUtranCellFDD = GNL00347_7R_1_DB THEN TEST
END AS TEST_123
FROM dc.DC_E_ERBS_EUTRANCELLFDD_RAW DC_E_ERBS_EUTRANCELLFDD_RAW
WHERE  ( "DC_E_ERBS_EUTRANCELLFDD_RAW"."DATE_ID" = '2017-11-14')
    AND ( "DC_E_ERBS_EUTRANCELLFDD_RAW"."ERBS" = 'GNL00347')
GROUP BY DC_E_ERBS_EUTRANCELLFDD_RAW.DATE_ID  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.HOUR_ID  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.MIN_ID  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.ERBS  
    , DC_E_ERBS_EUTRANCELLFDD_RAW.EUtranCellFDD


Viewing all articles
Browse latest Browse all 2544

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>