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

Can a table have no primary key?

1011


What is cursor in pl sql?

1052


Which sorts rows in sql?

970


How do you add a column to a table?

997


What is the use of partition by in sql?

931


What are commit, rollback, and savepoint?

940


What are the set operators in sql?

1032


How many commands are there in sql?

973


how to get help information from the server? : Sql dba

878


How do you update a table in sql?

930


How many types of primary keys are there?

980


Does group by remove duplicates?

983


what is union? : Sql dba

968


Write a sql query to get the third highest salary of an employee from employee_table?

1030


What is null in pl/sql?

1023