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...

Delete the emps whose salaries are lowest sals of their own
dept.

Answer Posted / roopesh kumar

delete from emp where (deptno,nvl(comm,0)) in (select
deptno,min(nvl(comm,0)) from emp
group by deptno)

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is embedded sql in db2?

1061


what is the functionality of the function htmlentities? : Sql dba

1012


Is it possible to create startup or shutdown trigger for on-schema?

1093


What is raid? How does it help storage of databases?

1133


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

1120


What does select count (*) mean in sql?

1075


How does sql*loader handles newline characters in a record? : aql loader

1095


How do I start sql profiler?

1048


How many triggers can be applied on a table?

990


what is a trigger in mysql? Define different types of trigger. : Sql dba

1121


What does cursor do in sql?

1067


What is delimiter in pl sql?

1102


How to find 3rd highest salary of an employee from the employee table in sql?

1136


Do we need commit after truncate?

1138


Define a temp table?

1082