|
|
Archives of the TeradataForum
Message Posted: Tue, 19 Dec 2006 @ 16:01:27 GMT
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?????
| |