Professional Documents
Culture Documents
SQL>Select ename, sal from emp where sal > (select min (sal)
From emp);
•List the employee name and salary of the employee whose
salary is greater than the average salary of employees whose
hiredate is before 01-jan-81.
We can use ROWNUM to limit the number of rows returned by a query, as
in this example returns first 10 records of emp table: