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
How to represent ENUMs and SETs internally?
What is database url for mysql?
What is mysql data directory? How to determine the location of the data directory?
What are date and time functions in mysql?
How to include numeric values in sql statements?
How do you backup a database in mysql?
Is mysql a database?
What is key in mysql?
suppose data is copie to oracle to sql by using DTS. Actully it taken 2 hours. suppose some day distribute the server in the middle of 2 hours. after how can i get the data ?
What is definer in mysql trigger?
What is the role of a limit in a mysql query?
In which language mysql has been written?
Is oracle better than mysql?
How many rows we can insert in a mysql table?
How large can a mysql table be?