Display the name of the Department and employees in this Department

Hi all

I want to display the name of the Department and employees in this Department in a single line. Can you please help me to do so.

Oracle version : 9.2.0.8

create table emp
(varchar2 (100) number of ename, empno, dept_id number);

create table dept
(dept_id number, dept_name varchar2 (100));

Start
insert into emp values (100, 'Raghu', 10);
insert into emp values (101, 'Nathalie', 10);
insert into emp values (102, 'Sai', 10);
insert into emp values (103, "Riquet", 20);
insert into emp values (104, 'Radha', 20);
insert into emp values (105, "Bika", 30);
insert into emp values (106, 'Satish', 30);
insert into emp values (107, 'Emma', 30);
end;

Start
insert into dept values (10, 'Sales');
insert into dept values (20, 'Marketing');
insert into dept values (30, 'accounts');
end;

Expected results
*********************
dept_name employees
-------------- ----------------------
Sale of Raghu, Tedla, Sai
Marketing Ramesh, Radha
Accounts Bilodeau, Satish, James

Thank you
Rambeau
select dept_name,
max(sys_connect_by_path(ename,',')) employess
from (select dept_name,ename,
      row_number() over(partition by emp.dept_id
      order by empno) r
      from emp,dept
      where emp.dept_id = dept.dept_id)
start with r=1
connect by prior r+1=r
       and prior dept_name=dept_name
group by dept_name;

Tags: Database

Similar Questions

  • is it possible to display the Date and time in the address bar or a clock window constantly

    I need to take screenshots with date stamps and time using the script of iMacros. Everything by taking screenshots iMacro don't add taskbar windows for the date and time. It takes screenshots of browser. Is it possible to display the Date and time in the address bar or a clock within the tab browser constantly to capture the screenshot with time stamp through iMacros
    I added the big clock background Add-ons, but it is visible to new tabs.

    Badly looking for help and it will be really appreciated...

    Try this extension:

  • Camileo S20 - How to display the date and time

    Hi, all. I got as Christmas present the Camileo S20, and I am not able to view the date and time in the video. In the manual is no reference on this subject, only how to set the date and time. But what is the intention to set the date and time in the camera, if it is not possible to display video?

    Hello

    Have you checked the user manual of your TV cam?

    If it of possible to display the data and the time you can find in your user manual how to do this. It always interesting to read ;) s

  • How can I print my photos displaying the date and time stamp

    I have pictures in a legal context but do not understand how to print them displaying the date and time stamp.  The timbre of the date and time are necessary for me to present my case exactly.  Can someone tell me how to print with these marks.

    Thank you

    The following instructions will prepare photos
    with the EXIF Date/time stamp then you can print
    them.

    FastStone Image Viewer freeware can add
    EXIF Date/time in the face of your photos in a batch.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    FastStone Image Viewer
    http://www.FastStone.org/FSViewerDetail.htm
    (Windows XP / Vista / 7)

    I suggest that you create a new folder and add
    copies of your photos for experimental purposes.
    If you are unhappy with the result your originals
    will be intact.

    After FastStone is downloaded and installed...
    Open the program and go...

    Tools / open the Batch Conversion / tab Batch convert...

    Check the box... Use of advanced options...

    Advanced Options button / tab text.
    Check the box... Add text...

    (You will need to experiment with the position and the police
    size and color to get the desired result.)
    (the text size will need to be adjusted according to the)
    the size of the photos)

    Open the window drop... "Insert a Variable."
    choose... EXIF Date Time / Date and time...
    (in the white field you should see ($H1)
    Left click... Ok

    On the Batch tab convert... in the left field...
    Left click the square button "select the Source folder.
    Find and select the photos you want to
    Add.

    Left, click on the Add button to move the files to
    the right field.

    Choose an output Format...

    Choose an output folder...

    Click on the button convert...

    It's much easier to do than to explain then
    give it a try before say you "Good Grief... it's too
    a lot of work.

  • The Task Manager does not display the process and tabs, even if the menu can be seen.

    Dear community, I had a serious problem on my task manager. It does not display the process and tabs, although the menu is visible. Also, any time I open a program or system of adjustment, some and especially no option can be seen since there is no specified words.

    Here is a link that you can see a screenshot on my problem.

    http://kepfeltoltes.Hu/121231/592911021Untitled_www.kepfeltoltes.hu_.PNG

    Thanks in advance for your help

    Original title: Task Manager problem

    I managed to solve the problem by looking for alternatives. Apparently, the problem was caused by a dat file (C:\windows\system32 folder called FNTCACHE.) (DAT) I deleted and it worked like a magic. Everything was normal again.
    Deleted it and the work of all the graphical interfaces as it should.

    Thanks for your answer, in any case. I just post the solution here if someone ever faced with such a question in the future.

    Kind regards
    Laszlo

  • How display the date and the time in the taskbar on Windows 7 Home Premium 64 bit system?

    How display the date and the time in the taskbar on Windows 7 Home Premium 64 bit system?

    I already did it.  The time is displayed in the correct format, but I can't seem to view the date of

    Any other suggestions?

    Thank you

  • To display the taskbar and Start Menu Properties dialog box

    To display the taskbar and Start Menu Properties dialog box, click on? in the context menu of the taskbar.

    Hello

    1 are. which option you referring?

    2. what you trying to accomplish?

    I suggest to check the following links and check if it helps.

    Taskbar of Windows: http://windows.microsoft.com/en-us/windows7/products/features/windows-taskbar

    The new taskbar of Windows 7: http://windows.microsoft.com/en-US/windows7/help/better-stronger-faster-the-windows-7-taskbar

    Hope this information is useful.

  • How to display the tasks and menu bar start on windows 7?

    Ive tried all to display the taskbar and start menu in windows 7, but nothing does.  Could you please help me?

    Hello

    Were there any changes made on the computer before the show?

    See the article and check if that helps:

    Show or hide the taskbar

    http://Windows.Microsoft.com/en-us/Windows7/show-or-hide-the-taskbar

  • First pro cc 2015 project file does not open... displays the logo and says its loading but it never opens up to... There is two days. I reallly need to solve this... any suggestions?

    First pro cc 2015 project file does not open... displays the logo and says its loading but it never opens up to... There is two days. I reallly need to solve this... any suggestions?

    Hi Carl U.

    You have solved this problem yet? If not, please contact support here.

    Thank you
    Kevin

  • How to display the height and width of an image that I adjust them

    How display the height and width in pixels of an image that I adjust them until I actually have to crop the image?

    You can make the Panel visible Info and see dimensions in various operations.

    It is often useful to define the rules to read in Pixels (in the section units and rules of preferences).

    -Christmas

  • How to recharge my hard drive with photos that are stored in iCloud.  After installing a new hard drive, there's no pictures found in the Photos, and I get this error "cannot find system Photo library named"Library.photoslibrary Photos".

    How to recharge my hard drive with photos that are stored in iCloud?  After installing a new hard drive, there's no pictures found in the Photos, and I get this error, "could not find the picture of system library named"Library.photoslibrary Photos".

    Soon as your App Photos or iPhoto lost track of your photo library, or there has not been migrated from your old drive. You can create an empty library and probably enable iCloud photo library for photos to upload to the cloud.

    Designate a library in pictures - Apple Support System

  • Initially, I got a screen to manage my team. I invited 2 of my 3 members of the team. I went back to invite the 3rd and cannot find this feature most?

    Initially, I got a screen to manage my team. I invited 2 of my 3 members of the team. I went back to invite the 3rd and cannot find this feature most?

    Please refer to this article

  • Display the first and last name of userdetails welcome message

    Hi I am a newbie to php in dreamweaver CS5 and I did many tutorials with David Gassner and tutorials seen with David Powers.So my works perfectly login page it takes my my login page, but I want to display the full name of the users on the page, but I can't make it work I even bought a tutorial of SDS tutorials on this subject , but not working, can anyone help.

    If (! isset {})

    session_start();

    }

    It's my recordset.

    $colname_getUserDetails = "-1";

    If (isset($_SESSION['MM_userName'])) {}

    $colname_getUserDetails = $_SESSION ['MM_userName"];

    }

    @mysql_select_db ($database_datexdatabase, $datexdatabase);

    $query_getUserDetails = sprintf ("SELECT firstName, lastName FROM users WHERE userName = %s", GetSQLValueString ($colname_getUserDetails, "text") ");

    $getUserDetails = mysql_query ($query_getUserDetails, $datexdatabase) or die (mysql_error ());

    $row_getUserDetails = mysql_fetch_assoc ($getUserDetails);

    $totalRows_getUserDetails = mysql_num_rows ($getUserDetails);

    not sure of the echo

    concerning

    Stephen

    Access.php page, change-

    $totalRows_rsUserDetails = mysql_num_rows ($rsUserDetails);

    on this subject.

    $totalRows_rsUserDetails = mysql_num_rows ($rsUserDetails);

    ECHO '.

    "; Exit(print_r($row_rsUserDetails)) ;

    Enregistrer et télécharger. Ensuite, allez à la page de connexion et se connecter.  Que voyez-vous sur la page d’accès ?

  • Does not display the images and CSS does not work generated WebHelp

    Hi all

    I have two issues which I believe are related. It miss me probably a simple step somewhere, since I can't find this issue covered in the forum or help.

    We have just upgraded to RH7 to RH9. When I build a project to test, the CSS was fate not (it was connected properly in the topics of the project, but he was not released when the WebHelp has been generated). Trying to open the CSS file directly led to a 404 error.

    I was able to solve that by checking the "Apply to all" button and selecting the CSS file we use (see image). However, none of our lists - ordered and unordered - are properly formatted. The font and size of numbered lists is incorrect, lists all nested lists display with numbers, even if they are not ordained and autonomous bulleted lists use evenly filled as circles dig balls, where previously they used the small squares, circles, or a picture of triangle. The CSS is called correctly in the subject, lists are formatted to use the styles and the styles are in the style sheet, so I do not know what causes this problem. So far, I have not noticed any other styles does not, but those are the ones that stand out.

    WebHelp Settings (CSS).png

    The other problem is with the images. This problem appears in both our WebHelp generated and in the printed documentation. The images are not output. In WebHelp, the text appears (typically the name of the file). in the printed documentation, nothing appears. (I checked all the printed documents that "embedded" is selected, but as far as I know, there isn't a similar function for the WebHelp).

    What Miss me? Thanks in advance for any help!

    Source code control is involved?

    So you can see the CSS in the project manager and it works very well in the design editor but does not every time that you build for. Can you just build or generate and publish? You use Windows Explorer to check the CSS in both places?

    How do you get a 404 error? This happens when you click on a link where the target does not exist. Normally you would use Windows Explorer to locate the CSS.

    Lists are a known problem on upgrade from 7. See the lists on my site.

    The images show in the project manager?

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • How to display the voltage and current of synchronously

    Recently, doing a project on the acquizeing voltage and current synchronouly, then display. the design is welding a resistor(1%) 0.5 ohm in NI 6251 entered analog of her HAVE differential, then acquired the differential voltage at the input to convert current. At the same time, I hope to recover the path of analog input voltage. My problem is that the current profile data. Please help me .the program screenshot is show below. ---1. Perhaps you ask why not use no. - a way to get voltage at all port of AI, then in the use of the software less to get a voltage inputs HAVE. in this way, my problem is solved. I try, but the current accuracy is failure. because my current range expect is 1uA ~ 100mA. precision current samll won't be promised if you use simple ways for granted NOR 6251 voltage. NEITHER 6251 device spec (HAVE an absolute precision) (v) nominal range sensitivity absolute Accuracy (uV) 10 1920 112 5 1010 56 2 410 22.8 74 0.2 6.4 0.1 52 6.0 (I want to use this range to measure current samll) - cordially Shawnh.Chen

    shawn1 wrote:
    1. how show the waveform by accumulating 1 d data table, rather than showing all 100 acquisition

    Use a waveform graph.  Graphics keep history, you do not have to accumulate the data.  He does it for you on the screen.

    shawn1 wrote:
    2. What is the minimum unit of identification of the TSC103IPT amplifier? I doubt that the 0.5uA can be identified? (0.5uV = 0.5 ohm * 1uA) Because I can't find anything on the auccary in TSC101IPT datasheet.

    The amplifier is analog.  Thus, he can win anything.  But you should really think about a higher resistance if you really want to measure this small of a current.

Maybe you are looking for

  • Pavilion p6-2002es: what is the minimap?

    My card mother TX H-CUPERTINO2-H61-uA, has a "mini-map taken." What is it? Can I plug an SSD there? I've been googleing cela but can't seem to get the difference between the 'PCI-e x 1' and the 'mini map making '.

  • Satellite P870 - ODD runs intermittently every few minutes

    I don't see why this is happening... Windows 8 P870/019 everyone has already heard their player optical spin up not and once again. any help appreciated. Sound like something is to check the disc. ???

  • The latest os for curve 8520 blackBerry Smartphones

    Hi can anyone tell me what the latest operating system is for curve 8520 I current have os 5.0.0.1036 I don't know if it's the last or I have to upgrade to a new version please help

  • PES 10 refuses to uninstall.

    I bought 13 PSE.  I tried an installation "crush" PES on PES 10 13... but that has failed.  Then I tried to uninstall PSE10 through programs of "add and remove" Windows 7.  Who failed too.  Finally, I tried to uninstall with Revo Uninstaller Pro 10 P

  • On the report page

    Hi Experts,I use wcc11.1.1.7, by using the web page layout editor, I created a page in current report, then click on "update of portal" drop-down menu options and update successfully, I can't see the library folder, even after that I restart the serv