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

consider a table which contain 4 columns,ename,eno,sal and
deptno, from this table i want to know ename who having
maximum salary in deptno 10 and 20.

Answer Posted / sanjeev

SELECT ENAME FROM TABLE NAME WHERE SAL>(SELECT MAX(SAL)
FROM TABLE NAME GROUP BY DEPTNO

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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 are the non-standard sql commands supported by 'mysql'? : Sql dba

1176


What is an invalid partition table?

1067


in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.

2139


what are enums used for in mysql? : Sql dba

1231


Why self join is used in sql?

1031


What is the difference between row level and statement level trigger?

1072


Does oracle use sql?

992


what is meant by urlencode and urldocode? : Sql dba

1242


Is hadoop a nosql?

1054


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

1116


Are subqueries better than joins?

1041


Is sql a case sensitive language?

1010


What is sql injection vulnerability?

1005