query to retrive the employees whose sal is greater than avg
sal
Answer Posted / amit
SQL>SELECT ENAME,SAL FROM EMP
WHERE SAL>(SELECT AVG(SAL) FROM EMP);
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is the difference between left join and right join?
What is difference between db2 and sql?
Why we use sql profiler?
Does sql support programming?
What are different functions in sql?
How would you reference column values before and after you have inserted and deleted triggers?
What are the parts of a sql statement?
Explain some predefined exceptions.
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql
How can we implement rollback or commit statement in a trigger?
List the various privileges that a user can grant to another user?
How many disk partitions should I have?
Is primary key is clustered index?
Is hadoop a nosql?
table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10