|
| Total Answers and Comments: 10 |
Last Update: August 17, 2009 Asked by: radha11 |
|
| | |
| |
| |
August 03, 2009 05:44:14 | #8 |
| harit79 |
|
Member Since: November 2008 Contribution: 7 |
RE: how many columns can be in the group by clause
| | If we are using aggregate function in select clause then there should be one column in group by clause Let me explain with the example.
Select max(sal) min(hire_date) ename lastname from emp where lastname like '_a ' group by ename;
So you have to use atleast one column (No aggregate funciton). |  | | Is this answer useful? Yes | No | | |
|
| |
Go To Top
|