How do I fill in the gaps with data?

Hi,
I have paragraphs of data with a header which holds the ID I need to have against each row of that data.
I want the Patient ID to fill fields below that row (where the 'Obs' and sequential numbers are) until it gets to the next patient id, and then make it do the same again and again until the end.
Can this be done in a single SQL UPDATE statement?
Thanks Daniel
This is the data, this is all one column:
Patient ID=1000207 regimen=EFV+ZDV+ddI Randomization Date=26/03/2004
Obs
1
2
3
4
5
6
7
Patient ID=1000751 regimen=EFV+d4T+3TC Randomization Date=25/02/2004
Obs
8
9
10
11
12
13
14
Patient ID=1001379 regimen=LVP+d4T+3TC Randomization Date=17/03/2004
Obs
15
16
17
18
19
20
21
22
23
24
etc. etc.

Hi,
welcome to the forum.
Please read SQL and PL/SQL FAQ
Kindly post sample data (CREATE TABLE and INSERT statements), explain the business requirement and post your expected output.
Don't forget to mention also your Oracle version as result of
SELECT * FROM v$version;When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
i.e.:
{noformat}{noformat}
SELECT ...
{noformat}{noformat}
Regards.
Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • SSHR How to popullate PDF ( Fill in the blanks) with data in prev page

    I need to replicate the Federal tax Information (W4) process in self service, what it does is it will let user change their w4 details and when they click on next page in the next page it will launch pdf inside the browser and populate w4 form with data entered in previous page.Basically i am creating state tax info form and want to see if I can have similar flow .
    What do I need to do to make this heppen?

    karan,
    There won't be any exact scenario, but the threads with details on how to use XMLP with OAF. There are some sample codes and with that you should be getting started.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                   

  • Deskew: filling in the gap

    I often use Acrobat (Standard 8.1.2) to create B/W pdf's from scanned sheet music. The deskew function works fine for me. However after deskewing Acrobat fills in the gap with black, which gives me sometimes black strokes at the margins.
    Is there a way to make Acrobat do the filling in with white instead of black? This would save me a lot of cropping work afterwards.
    I wanted to attach an example, but found no way to do this in this forum.
    Thanks
    Peter

    Hi Mike, thanks for the reply. I'm also using Photoshop, but not for this purpose. Photoshop doesn't allow arbitrary rotation of a B/W image. Paint Shop Pro does, but then, with PSP (as well as with Photoshop), this workflow requires lots of interventions: scanning, deskewing (click & drag to define the horizontal axis), aplying, saving, gathering all documents in Acrobat to convert them into 1 pdf,... makes it a hell of a job. While scanning in Acrobat does all this in one go. What's ennoying is that Acrobat fills in those parts of the page where there was no information due to the rotation of the page with black after deskewing, resulting in black strokes sometimes at the margins. If I could let it use white instead (in Photoshop or PSP this is selecting white as background), this would be perfect; those fill ins would be white, not requiring any more editing for the margins.
    Peter

  • How do I fill an Excel spreadsheet with the contents of a DataTable? (C#, OleDb)

    The following fills a DataTable with the contents of an Excel spreadsheet.
        oledbCmd.CommandText = "SELECT * FROM [" + stSheetName + "$]";
        DataTable dtDataTable = new DataTable();
        using (OleDbDataAdapter oledbAdapter = new OleDbDataAdapter(oledbCmd))
        oledbAdapter.Fill(dtDataTable);
    How do I fill an Excel spreadsheet with the contents of a DataTable?
    bhs67

    You can try this Excel library, it can help u to
    export datatable to excel to Database.
    After add the reference to your project ,add the following code:
    private void button1_Click(object sender, EventArgs e)
    //connect database
    OleDbConnection connection = new OleDbConnection();
    connection.ConnectionString @"Provider=""Microsoft.Jet.OLEDB.4.0"";Data Source=""demo.mdb"";User Id=;Password="
    OleDbCommand command = new OleDbCommand();
    command.CommandText = "select * from parts";
    DataSet dataSet = new System.Data.DataSet();
    OleDbDataAdapter dataAdapter = new OleDbDataAdapter(command.CommandText,connection);
    dataAdapter.Fill(dataSet);
    DataTable t = dataSet.Tables[0];
    //export datatable to excel
    Workbook book = new Workbook();
    Worksheet sheet = book.Worksheets[0];
    sheet.InsertDataTable(t, true, 1, 1);
    book.SaveToFile("insertTableToExcel.xls");
    System.Diagnostics.Process.Start("insertTableToExcel.xls");
    http://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Data-Export-/Import-Export-Datatable-to-Excel-from-Database.html

  • Fill-the-gap with multiple gaps - show right answers colored

    Hello,
    I'm using CP5 on OSX 10.6.4
    I create a quiz "fill-the-gap" with multiple gaps (textfields/drop-down menu) in a single slide.
    When a user doesn't fill all gaps he get the info, that he have to fill all gaps. O.K.
    When he fills wrong answers he get the info, that it is not correct. But he can't see, which answers are right answers.
    Has CP5 (i.e with a variable) the feature to color right answers (i.e the font turns to green) others turns to red?
    Or right answers turns to non-editable textfields or drop-downs aren't available after setting the right answer.
    Ishan

    Hello,
    I never used CP5 on Mac, just on Windows. So I'm not totally sure my answers will apply.
    About your question to see the right answers: normally this will be done during Review, provided you did allow Review in the Quiz Settings (Allow the user to review the Quiz). You can see the message that will be showed when selecting the Review area on the stage and looking at the Properties. The messages can be edited. In the screenshot you see the default messages. For an incorrect answer both the given answer ('Your answer:...')  and the correct answer will be put in the Review area during review.
    For your second questions: as far as I know, this is not possible with the default dropdown list of the Question slide for 'Fill-in-the-Blank'. It could be made possible by constructing your own Question slide, using the available objects, user variables and advanced actions.
    Lilybiri

  • HT1438 dont i have to submit a slip before giving back in my ipod for fixing? what do i do? how do i fill in the form?

    how do i fill in the form to give back my ipod and get a new one? whats the website i go to and what do i type in? can i change the color of my ipod from black to white?

    Follow the instructions here:
    Apple - Support - iPod - Service FAQ
    I do not think you can change the color but you can ask.

  • How do I connect to the internet with my new IPAD ?

    How do I connect to the internet with myt new Ipad

    See here for connecting to the Internet:
    http://support.apple.com/kb/HT1695
    If you have any problems there is troubleshooting advice here: http://www.apple.com/support/ipad/wifi/

  • How do i connect to the internet with my ipad?

    how do i connect to the internet with my ipad?

    Did you turn WiFi on in the Settings App? If WiFi is turned on, your iPad should be able to see any WiFi networks that you can connect to and you should be able to tap on one of those, enter a password if needed and then tap the join button.
    I get the feeling that you know this and the problem needs further explanation so ... Can you explain in more detail?

  • How do i connect to the internet with apple tv

    how do i connect to the internet with apple tv

    Ethernet cable from your router, or configure wifi in Settings.

  • HT1338 i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created.

    i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.

    You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
    Hope that helps.

  • Fill the LOV with data during the execution

    Hi
    I am using Oracle 10g
    I want to ask please if there is a way to fill the LOV with data during the execution
    so can I change the query specified in LOV wizard during the execution and get a new record set according to the value in the text boxes
    thank you for help

    You can use the SET_LOV_PROPERTY built-in to change the record group of the LOV and to create a new record group you can use the CREATE_GROUP_FROM_QUERY built-in.
    it will be something like this.
    RG_ID := FIND_GROUP('<record group name>');
      IF NOT ID_NULL(RG_ID) THEN
           DELETE_GROUP(RG_ID);
      END IF ;
      RG_ID := CREATE_GROUP_FROM_QUERY('<record group name>', '<your SQL statement here>');
      POP_GROUP := POPULATE_GROUP('<record group name>');
      SET_LOV_PROPERTY('<LOV name>', GROUP_NAME, '<record group name>');Use the online help for more information about these built-ins.
    Tony

  • I made a card using the iPhoto and when I click to buy it, it says that I did not fill all the frames with pictures, even though I did and have checked multiple times. Please help, it's for Mother's Day.

    I made a card using the iPhoto and when I click to buy it, it says that I did not fill all the frames with pictures and that I need to in order to purchase it, even though I did and have checked multiple times. Please help, it's for Mother's Day.

    Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
    LN

  • I sold my ipad 2 and didn't take out my apple id. how can i log off the ipad with out having it in hand?

    I sold my ipad 2 and didn't take out my apple id. how can i log off the ipad with out having it in hand?

    You can't. But the buyer more than likely restored it because he/she could not use your Apple ID.

  • How do I make appear the "phone with skype"-link, ...

    How do I make appear the "phone with skype"-link, next to tel numbers on websites, that I visit ?

    Hi, filipfirmout, and welcome to the Community,
    In the Windows version, the settings to enable this are here:
    Tools -> Options -> Advanced -> check in Use Skype to call to links on the web -> Save.
    There is also this: http://www.skype.com/en/download-skype/click-to-call/
    Best regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • I connected my Canon printer to time capsule, and can print OK. However, I can't get the printer scanner to work. How do you set up the scanner with Time Capsule?

    I connected my Canon printer to time capsule, and can print OK. However, I can't get the printer scanner to work. How do you set up the scanner with Time Capsule?

    You cannot use USB. It has to be a network capable printer.. is it?? You did not indicate how it is connected.. but by wireless or ethernet then scanning is possible otherwise not.

Maybe you are looking for

  • Tried many things and my iTunes still will not open

    I recently did a full restore on my computer, and when I tried to open up my itunes through the shortcut and going through "start, all programs, itunes" I received an error message saying "iTunes has encountered a problem and needs to close. We are s

  • ORA-04092

    Hi All, I have created row level insert trigger t1 which based on some conditions call Procedure P1. If Procedure P1 succeeds then it calls Procedure P2...P12. In Procedure P12 i am issuing a commit statement. Now when i insert a new row into the tab

  • Business One Profit and Loss Statement Budget Report Subtotals not Working

    We are running Business One 9.0 The Budget profit and loss report appears to be badly written. Rather than having the budget data in the same line as the actual, the report creates extra lines for the budgets AND adds more data to the actuals column.

  • On wake from screensaver, black screen, but functional swipe?

    Recently, when I return to my computer after the display has gone to sleep (or the screensaver has activated), my screen goes black. Sometimes I have the spinny beachball, but sometimes it's just a pointer. I do not suspect any high CPU usage since I

  • Redownloading lost purchased songs?

    I recently downloaded like 20 songs, and I haven't had a chance to put them on my iPod or anything. Today I went on my iTunes and some error cup and all my music was deleted from my iTunes. How do I re download the songs I've bought