query to retrive the employees whose sal is greater than avg
sal
Answer Posted / badchip
select ename,esal from emp_mast where esal > (select avg
(esal) from emp_mast group by esal);
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the difference between having clause and where clause?
How can a pl sql block be executed?
How do I make my sql query run faster?
what is the command line end user interface - mysql? : Sql dba
what is a composite primary key ? : Sql dba
What are different types of triggers?
what is the difference between where clause and having clause? : Sql dba
what is the difference between inner and outer join? Explain with example. : Sql dba
What is the purpose of design view?
How do I view stored procedures?
How do I edit a stored procedure?
Is natural join same as inner join?
What is auto increment in sql?
What are tables and fields?
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba