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 show all records starting with the letters 'sonia' and the phone number '9876543210'
Is mysql from oracle?
How can you add and remove any column of a table?
What does mysqli_fetch_assoc do?
How to use 'mysql' to run sql statements?
What is innodb_buffer_pool_size?
What does "i_am_a_dummy flag" do in mysql?
How many entries can mysql handle?
Which is better mysql or microsoft sql?
What is procedure in mysql?
How can we encrypt and decrypt a data presented in a table using mysql?
What data type is money?
In which year mysql created?
Is the syntax correct? Explain the meaning of the syntax given below: $dbc = mysqli_connect('data.aliensabductedme.com', 'owen', 'aliensrool', 'aliendatabase');
How do I quit mysql?