Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 19 Dec 2006 @ 16:01:27 GMT


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


Subj:   Group by of multiple columns for teradata and
 
From:   Mohd Suhail

Hi All,

I have tried executing the following query in oracle

     select  deptno, mgrno, empno from master
     where <<>>>
     group by deptno, mgrno,empno;

The above query gives results first by all department nos, then manager no and then empno.

I converted the above query in teradata as

     select  deptno, mgrno, empno from master
     where <<>>>
     group by deptno, mgrno,empno;

Although both queries are against the same table, the order in which the rows appear drastically differs. Can someone help me with this?????



     
  <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