Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

print output using concatination & joins

$
0
0
7369 is working in department 20 and his manager is FORD.

I am trying to display above format using oracle 10g scott/tiger schema EMP table.

i have tried with this query , but am unable display the exact ouput

select empno ||' is working in department '|| deptno ||' and his manager is '||
(select distinct b.ename
from emp a,emp b
where b.empno=a.mgr) from emp

any modifications !!....

Viewing all articles
Browse latest Browse all 13329

Trending Articles