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 / praveen reddy.eddula

select ename from emp where sal in(select max(sal) from emp
where deptno in(10,20))

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1055


What is the trigger in sql?

929


GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?

3033


describe transaction-safe table types in mysql : sql dba

986


What is an exception in PL/SQL? What are the two types of exceptions?

1274


What is rownum?

963


How do I find duplicates in two columns?

1127


Does group by remove duplicates?

1019


Why stored procedure is better than query?

922


Inline the values in PL/SQL, what does it mean.?

1201


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1196


What is the difference between sql and mysql?

1099


How sql query is executed?

1110


Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)

936


what are the disadvantages of mysql? : Sql dba

1129