Oracle DBA Question:

Download Job Interview Questions and Answers PDF

what is the difference between group by and order by?

Oracle DBA Interview Question
Oracle DBA Interview Question

Answer:

group by is used when we use aggregate functions on the columns in a query the other columns
should be in group by query
example:
select empno,ename,sum(sal) from emp
group by empno,ename
Order by is used to sort values either in ascending or descending order

Download Oracle DBA Interview Questions And Answers PDF

Previous QuestionNext Question
How would you pass hints to the SQL processor?A DBA had to remove some Archivelogs to free up space in filesystem. Now
when the RMAN job starts to backup Archivelogs, it complains about missing Archivelogs that
were deleted by DBA. To resolve the issue and continue backing up remainder of Archivelogs,
which RMAN command can be used so it wo not complain about missing Archivelogs.