I a table "person" and need a query for those personName who's
1.salary is maximum
2.cityCode is 12
3. age is 32
suppose- there are 3 person with name RAM .
AND 3 with name sunil
and 3 person with name rahul....
and i need the only those record who contain the maximum salary
means ram with maximum salary , sunil with maximum salary and rahul with maximum salary
Loading
Sanjeeb LenkaPosted Jul 10, 2013, 2:06 AM
SELECT DISTINCT Name, Salary FROM EMP WHERE
Salary = (SELECT Max(Salary) FROM EMP) And CityCode=12 and Age=32
Iftikar HussainPosted Jul 10, 2013, 2:05 AM
try like this
Regards,
Iftikar