How to combine lines of diff

Hello

I use the apex of oracle 10g 3.2
I have a
TableA (Service_registration_id as primary key, service_id) it contains all the services registered in the patient. There isn't any patient id.

ViewA (Service_registration_id, patient_id_code)

TableB (service_id as primary key)

Now, there may be several services registered to each patient in TableA.

What I want is I want to combine services for a given patient and display in a report.
i.e.
Service1 - Patient 1
Service2 - Patient 1
Service1 - Patient 2

So I want to combine as "Service1, Service2" as 1st row, then 'Service1 '.

I'm using a slider that gives me all the services for all patients using tableA and tableB, then now its concatenation of all services in a line, but then how can I get patient vice.
As if services belong to the same patient can combine or well do not combine.

Thank you

For example in 10g...

SQL> ed
Wrote file afiedt.buf

  1  select deptno, ltrim(sys_connect_by_path(ename,','),',') as enames
  2  from (select deptno, ename, row_number() over (partition by deptno order by ename) as rn
  3        from emp)
  4  where connect_by_isleaf = 1
  5  connect by deptno = prior deptno and rn = prior rn + 1
  6* start with rn = 1
SQL> /

    DEPTNO ENAMES
---------- --------------------------------------------------
        10 CLARK,KING,MILLER
        20 ADAMS,FORD,JONES,SCOTT,SMITH
        30 ALLEN,BLAKE,JAMES,MARTIN,TURNER,WARD

SQL>

Tags: Database

Similar Questions

  • How to combine digital charts

    Hello

    How to combine or merge the table 1 d of digital waveforms with a simple digital waveform. As givien in the attached VI, I want to display the datalines chart & graph of control lines in a simple graph of digital waveforms.

    Thanks in advance

    Hi gurum,.

    Well, you can use "Build Array" to merge the 2 1 tables and connect the output to the digital waveform curve, as illustrated below:

     

    It may be useful

    Warm greetings,

    Lennard.C

  • for the combined line and conditional formatting bar graph

    Hi all

    I have a combined line and bar chart, bars showing the values of the CDA in different exercise, as well as the lines that appear from year to month values in the different financial year, how set up the conditional formatting to do the same exercise, the same color - isn't serious CDA (BAR) or the year (line)?

    Thank you
    Ling

    Check the image at the Point # 5 of the link
    http://obieetraining11.blogspot.com/2012/08/OBIEE-11g-adding-graph-to-analysis.html

    Who has the possibility of conditional formatting.

    check if help

  • How to combine two conditions: there is and point not null?

    Hello!

    I have a flash chart area I would like to show only if two conditions are true.

    The first condition is the following:

    There are (at least a line returns the SQL query):
    select 1
    from    observatoire.fiche aa, observatoire.activite_faite bb
    where   aa.fiche_id = bb.fiche_id
    and     bb.fiche_id = aa.fiche_id
    AND     bb.activites_id = TO_NUMBER(:P23_ACTIVITES_ID)
    AND     TRUNC(aa.date_activite, 'YYYY') = TRUNC(TO_DATE(:P23_ANNEE, 'YYYY'), 'YYYY')
    And the second condition would be:

    Point not null:
    P23_ACTIVITES_ID
    How to combine these two conditions in one display condition?

    Thank you.

    Christian

    Hello

    The problem is that you do-

    TO_NUMBER(:P23_ACTIVITES_ID)

    When you leave the value of Null return like this, you will see "null %" generally used in session state (i.e., it is not actually null). Of course 'null %' cannot be converted to a number, from which the error you see.

    A simple solution would be to make your value null return value-1 or another value that is guaranteed not to be a piece of identification (and alternative is to convert the real null null % thanks to a process of App/Page etc (if you search this forum you will find a few examples on how to do this).) Another alternative is to use a DECODING to detect the '% null' etc.

    Hope this helps,

    John.
    --------------------------------------------
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • How to combine several libraries in a library complete?  And this new global all0 library can be an external hard drive?

    How to combine several libraries in a library complete?  And this new global all0 library can be an external hard drive?

    1. click here for more information.

    2. Yes, if this disk contains a partition image or the drive Mac OS Extended format.

    (142356)

  • How to combine 2 documents in pages

    I am writing a thesis in pages mac 5.6.1. So far, I wrote each chapter in separate documents and plan to simply combining them as you could in the old versions of the pages.

    How to combine in this version of pages? When I copy and paste the documents out of format with the cards move. If I convert to PDF, I lose the ability to put in an index and subsequently change.

    What is the best way to combine?

    V5.6.1 pages needs to copy and paste into the body of the document recipient of the document. Any object of document (graphics, tables, images, text boxes) will probably require a personal visit to the tab reorder in the right panel, where the object Placement and design will need to be adjusted to get the layout of document recipient behavior you are looking for. A text wrap of None to move objects in the desired position.

    Pages ' 09 may still be in your Applications: case of iWork ' 09, and has more substantial than v5.6.1 Pages functionality.

    Making any type of production of essential educational document in any version of Pages v5 is a high-risk business, as much found, when Pages v5 simply refuses to open or save the document. I recommend MS Word for academic pursuit because that's what the Faculty will be required to use internally, and you would work with a much more stable product which allows exchanging native Word document formats with the same Faculty.

  • How to combine faces albums

    I am up to date with El Capitan/Photos.  I try to combine the albums of face in 'faces.'  In the old iPhoto, I used to be able to drag a face on top of the other, and it may combine their.  For example.  I had my son named Mike and identified the faces of him.  Fast forward and I began to appoint Michael.  Now I have two 'files' or 'albums' - him.  A named Mike and named Michael.  In News Photos, I can't understand how to combine them.

    Select one and change the name - they will merge

    LN

  • How to combine two tables: table of origin and its values of interpolation table

    We get a new array of values after using the interpolation on a table function in labview, but how to combine the array of values and this original interpolated set of values in a single table?


  • How to combine (c) and (g) all [WINDOWS 8]

    my friend made a new volume (G and I still use it, my laptop started getting too slow and noticed that (C a 15.5 GB left 220 GB (this is not the system), so I wanted to know how to combine (G [not a 220 GB not used] with (C.))))

    Yet one thing, my caps lock stops flashing for a minute or two, don't know if I should do something

    My laptop has ' windows 8 '.

    Hi omar1231,

    Welcome to the community of HP, I hope you enjoy your experience! To help you get the most out of the Forums of HP, I would like to draw your attention to the Guide of the Forums HP first time here? Learn how to publish and more.

    I see that you want to combine the two discs, and I'll be happy to help you. There are two ways to do this. A method requires you to purchase software to partition and comb the volumes in this way. It would be a third-party software, so I can't really recommend a particular program.

    The second method uses Disk Management, which is part of your operating system. Search for disk management and you will see happen 'Create and format hard disk partitions. Which will open the disk management. Now this method will not work unless the partitions are side by side. So if you have a partition recovery or tools or another partition between C and G, it does not. If they are side by side you can right click on the volume of G and select delete the Volume, which removes the volume but not the partition. Right click again and Delete Partition. Then on the C volume, do a right click and select Extend Volume and follow the instructions.

    Thank you

  • How to combine Facebook Twitter & Google +.

    How to combine Facebook Twitter & Google +.

     
    Hello.
    Any person who knows tell me how to get to this page from my Google account.
    'Connect account '.
    http://beginnerworld.blogspot.com/2012/09/how-to-connect-Facebook-and-Twitter-on.html

    Hello

    I suggest that you ask the community of Google +.

    https://plus.Google.com/communities/115758385206378551362

    See you soon.

  • How to combine the 2 tables in sql server 2008?

    Tell me how to combine 2 tables in sql server. and give me an example, I am a beginner again.

    You can get a faster or better response if you ask one of the instances of SQL Server dedicated from Microsoft here:

    http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .

    (I'm sorry, but I can't move this thread for you because the two forums are working on separate platforms)

  • How to combine libraries of photos with pictures in Windows Media Center

    I want to know how to combine images with windows media center libraries pictures how it's done?

    Original title: search search index indexing re-indexing re-index research research research service troubleshooting troubleshooting

    Hello

    What operating system do you use?

    Please provide information more precise about what you are exactly doing.

    Refer to the below link mentioned before asking your question so that you can provide all the relevant information for us to help you:
    http://support.Microsoft.com/kb/555375

    You can also view the Sub articles that might help you.
    Windows Media Center
    http://www.Microsoft.com/Windows/Windows-Media-Center/get-started/media-library.aspx
    Add media files to Windows Media Center
    http://Windows.Microsoft.com/en-us/Windows7/add-media-files-to-Windows-Media-Center

  • How to combine two video projects in Windows Movie Maker?

    How to combine two projects?

    I started a project and I would like to import and more old project to combine.

    I guess that you are referring to the project .mswmm files?

    The following steps may be worth a try:

    Reach... File / open project... Select a project file.
    When the project appears on the timeline... go to...
    Edition / select all.

    Open a different project... to... Editing / paste.

    Now the content of the two projects should be on
    the chronology.

    To add more doing the same thing...

    Edition / select all... open a project... Editing / paste

    Another method would be to publish (save) each
    the project in film WMV format and then re-import
    both WMV clips and slide both to the
    timeline. Then, you could publish it as a simple video.

  • I try to combine a picture of my sister with a picture of a poem next to her. How to combine the two into a single photo?

    Paint or Windows Photo Gallery

    I try to combine a picture of my sister with a picture of a poem beside it, how to combine the two into a single photo?

    If you have the poem recorded in an image format,
    the following freeware can create a side by side
    Panorama.

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

    Download IrfanView
    http://MajorGeeks.com/IrfanView_d4253.html
    (filename: iview433_setup.exe)
    (uncheck if you don't want Google Chrome)

    Download plug-ins too...

    IrfanView plugins
    http://MajorGeeks.com/IrfanView_PlugIns_d4908.html
    (filename: irfanview_plugins_433_setup.exe)

    When the program is installed... read more...

    Open IrfanView and go... Image / create the Image of the Panorama...
    (this will open the screen to "Create a panorama image")

    On the screen to "Create a panorama image"... left click on the add images"" button.
    (Displays the 'Open' screen. Now, drill down to the
    the folder that contains your saved Photos of veterinarians.

    Now... click left (highlighted), the two images, you want to join.
    (you can select more than one if you hold down your Ctrl key)
     
    The two images highlight... left click on the button 'open '.
    (Or... you can add the images one at a time... which is always easier)

    Now, go back to the screen "Create the panorama image.
    and the file names of the selected pictures need to be in the
    Field "Input Images.

    Now with the names of two files in 'Images of entry' field...
    You can left click on the button 'create Image '.

    (the positions left and right of these images can be swapped in)
    selection of a file name and using the "mount image" / "Move."
    Images down"buttons...)

    Now you should see a display of the combined image.
    Reach... File / save as...

    Choose a backup location / enter a file name / choose a format...
    On the left, click on the button "Save..."

  • How to combine two picturesinto one

    I have 2 photos of people and I would like to combine them into a single image

    Hello

    PhotoShop (Adobe) and PhotoPlus (Serif) will allow that and both have communities of support
    and support forums. Of course, these are commercial programs.

    Here are some free ways to help:

    How to combine multiple Digital Photos into one
    http://www.Dummies.com/how-to/content/how-to-combine-multiple-digital-photos-into-one.html

    Check in the Forums of IrfanView.

    IrfanView - free (also get Plug-ins)
    http://www.IrfanView.com/

    IrfanView - Forums
    http://IrfanView-Forum.de/Forum.php

    This research should help to:

    Bing - Vista combine photos
    http://www.Bing.com/search?q=Vista+combine+photos&QS=n&Form=QBLH&PQ=Vista+combine+photos&SC=0-0&SP=-1&SK=

    Google - Vista combine photos
    http://www.google.com/#hl=en&sclient=psy-ab&q=vista+combine+photos&oq=vista+combine+photos&aq=f&aqi=g-v1&aql=&gs_l=hp.3..0i15.2387l9500l0l9943l22l17l1l1l1l0l2003l15023l2-5j2j6-4j3j2j1l19l0.llsin.&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=50aeccfec5fc8449&biw=1024&bih=713

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

Maybe you are looking for