is it necessary to write group by and order by clause together
Answers were Sorted based on User's Feedback
Answer / suman
No Required.
Group by is grouping the records
but Order by mention the data should be desc or asc order.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / madhav
yes,
select deptno,sum(sal) from emp group by deptno;
(it displays ascending order)
when we want to display the descending order,we need order
by clause and group clause.
select deptno,sum(sal) from emp group by deptno order by
deptno desc
(it displays the descending order)
Is This Answer Correct ? | 9 Yes | 10 No |
what is sql and plsql
What is the maximum rows in csv?
What is left join example?
how to check server status with 'mysqladmin'? : Sql dba
Explain 3 basic parts of a trigger.
I want to know last five transactions or records from emp table, from now?
Name the different types of indexes in sql and define them.
What is a trigger ?
11 Answers Accenture, BirlaSoft,
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
What is the difference between SQL table and the PLSQL table?
write the Sql query for creating database backup?
what is text? : Sql dba