Connecting Tech Pros Worldwide Forums | Help | Site Map

resolve this sql query urgent

Newbie
 
Join Date: Mar 2008
Posts: 1
#1: Mar 24 '08
hi all,
i'm having the table like
Expand|Select|Wrap|Line Numbers
  1.  
  2. table: emp
  3. ------------------------------
  4.  
  5. empno    ename  deptno
  6. ---------   -----------  ---------
  7. 101        aaa        10
  8. 102        sss         10
  9. 103       www         10
  10. 104        hhhh       20
  11. 105     hhhhh         20
  12. 106       uuuu          30
  13. 107       rrrrrr           30
  14.  
  15. i have to display the data by writing the query in sql like
  16.  
  17. deptno    empno1    empno2    empno3    empno4
  18. ----------     --------      ------------     ----------    -----------
  19. 10            101          102          103          
  20. 20             104        105
  21. 30             106         107
  22.  
plz send me to solve this problem

thanks in advance
Dinesh

amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#2: Mar 24 '08

re: resolve this sql query urgent


Please post what you have tried so far??
Reply


Similar Oracle Database bytes