Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 12 Sep 2012 @ 11:47:20 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Error - 3504 :- Selected non-aggregate values must be part of the associated group.
 
From:   sughesh iyyani

Hi Experts,

I am getting error 3504 "Selected non-aggregate values must be part of the associated group" while executing below query.

Could you please help me how to rectify this error.

Query:-

     SELECT
          NBR              (INTEGER),
          CAST ( SUBSTR ( CAST ( ENDTS AS CHAR(26) ), 1, 10)
          || '-' || SUBSTR     ( CAST ( ENDTS AS CHAR(26) ), 12, 2)
          || '.' || SUBSTR     ( CAST ( ENDTS AS CHAR(26) ), 15, 2)
          || '.' || SUBSTR     ( CAST ( ENDTS AS CHAR(26) ), 18, 9)
                               AS CHAR(26))   AS LOCENDTS,
           LOC_CD      (CHAR(01))
      FROM LOCN
      GROUP BY  1,2,3;

Thanks in advance,

Sughesh I S.



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016