Answer Posted / divyasrajesh
SQL> select m.ename,m.sal from emp e,emp m where e.mgr=m.empno
2 group by m.ename,m.sal;
ENAME SAL
---------- ----------
JONES 2975
SCOTT 3000
KING 5000
BLAKE 2850
CLARK 2450
FORD 3000
6 rows selected.
This is the query for getting the managers sal from emp pls check it out dudes;
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Can't connect mysql server on localhost?
How to get help information from the server?
How do I check mysql version?
how to display nth highest salary from a table in a mysql query? : Mysql dba
using primary can we relate two table, with out foreign key?
What is a query in mysql?
How do I completely remove mysql from windows?
Explain the difference between procedure and function in mysql?
How to return query output in xml format?
What language is mysql written in?
How to create a trigger in mysql?
What is a join in mysql?
What is delimiter $$?
Explain % and _ inside like statement?
What is the datatype of image?