Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1166


Which are the different case manipulation functions in sql?

1001


how can we destroy the cookie? : Sql dba

995


How can a pl sql block be executed?

932


Mention what is the function that is used to transfer a pl/sql table log to a database table?

971


What is an ndf file?

974


What does truncate mean in sql?

1002


How can you fetch first 5 characters of the string?

997


Differentiate between % rowtype and type record.

1278


What is the difference between execution of triggers and stored procedures?

1099


What is auto increment?

974


Why do we use sqlite?

956


How would you pass hints to the sql processor?

968


How do I add a database to sql?

1110


How run sql*plus commands that are stored in a local file?

1038