maheswarkv
Technical User
hi..
I have a doubt on Group by clause...can anybody explain to me...
I have 2 tables..both emp and dept like this:
empno ename deptno
------------------
1 A 10
2 B 20
3 C 10
4 D 10
Deptno Deptname
---------------
10 Comp
20 Phy
If i said a query like this i m getting an error messae. can u check it pls:
select * from emp group by deptno;
can u tell me y? can't we group like this?
Thank u in advance..
I have a doubt on Group by clause...can anybody explain to me...
I have 2 tables..both emp and dept like this:
empno ename deptno
------------------
1 A 10
2 B 20
3 C 10
4 D 10
Deptno Deptname
---------------
10 Comp
20 Phy
If i said a query like this i m getting an error messae. can u check it pls:
select * from emp group by deptno;
can u tell me y? can't we group like this?
Thank u in advance..