query to retrive the employees whose sal is greater than avg
sal
Answer Posted / swapna
select ename from emp where sal>(select avg(sal) from emp);
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is difference between group by and partition by?
How do you take the union of two tables in sql?
What is sql not null constraint?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
Is primary key always clustered index?
What is query optimization in sql?
Can %notfound return null after a fetch?
what are the type of locks ? : Sql dba
What are the advantages of sql? Explain
What does pragma mean?
What is a pl/sql block?
What are the types of join and explain each?
What is sharding in sql?
How do I find duplicates in two columns?
How many triggers can be applied to a table?