query to retrive the employees whose sal is greater than avg
sal

Answer Posted / shiva

select e.* from emp e where e.sal>(select avg(sal) from emp);

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is text? : Sql dba

578


How to add new employee details in an employee_details table with the following details

663


Can a foreign key be null?

601


Why are aggregate functions called so?

528


What is vector point function?

581






what are the different functions in sorting an array? : Sql dba

593


What is oracle and pl sql?

673


Which is better join or subquery?

628


How we can update the view?

609


What is duration in sql profiler trace?

565


What is the difference between an inner join and an outer join?

528


Why join is faster than subquery?

617


What is varray in pl sql?

576


what is user defined functions? : Sql dba

565


how are mysql timestamps seen to a user? : Sql dba

574