Need help-SQL with result format suppressing duplicate values

I am trying to write a SQL which would select data from the below tables(in reality i have many other tables also) but I wanted to know how do i get the data in the format given below.
The scenario is :-A training_plan can N no. of OBJECTIVES and EACH objective has N no.of activities
Insert into TEST_TRAINING_PLAN
   (TPLAN_ID, TPLAN_NAME, TPLAN_DESC, T_PERSON_ID
Values
   ('111', 'test_name', 'test_name_desc', '****')
Objectives table:-
Insert into TEST_TRAINING_OBJECTIVE
   (T_OBJECTIVE_ID,  T_OBJECTIVE_NAME,T_owner)
Values
   ('10', 'objective1', '1862188559')
Objective and Training Plan relationship table where TPLAN_ID is the foreign key.
Insert into TEST_TP_OBJECTIVE
   (TPLAN_TOBJ_ID, TPLAN_ID, T_OBJECTIVE_ID, 
    REQUIRED_CREDITS)
Values
   ('1', '111', '10',5)
Objective and Activity relationship table where T_OBJECTIVE_ID is the foreign key from the TEST_TRAINING_OBJECTIVE table.
Insert into TEST_TRAIN_OBJ_ACTIVITY
   (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
    ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
Values
   ('1000', '10', 'selfstudy event', SS1, NULL,
    'Event', 0, 0);
Insert into TEST_TRAIN_OBJ_ACTIVITY
   (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
    ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
Values
   ('1001', '10', 'SQLcourse', 1, NULL,
    'Course', 1, 0);
Insert into TEST_TRAIN_OBJ_ACTIVITY
   (TOBJ_TRAIN_ACTIVITY, T_OBJECTIVE_ID, ACTIVITY_ID, IS_REQUIRED, STATUS,
    ACTIVITY_TYPE, ITEM_ORDER, IS_PREFERRED)
Values
   ('1002', '10', 'testSQL', 1, NULL,
    'test', 2, 0);
COMMIT;
firstname     emplid     Tplan name     Number of activities/credits completed(for TP)     Objective Name     Number of required activities/Credits (for objective)     Number of activities/credits completed(for objective)     activity  name     activity completion status
U1     U1     TP1     5                         
                    OBJ1     4     3     C1     PASSED
                                   C2     PASSED
                                   C3     WAIVED
                                   T1     ENROLLED
                                   T2     ENROLLED
                    OBJ2     3     2          
                                   S1     ENROLLED
                                   S2     PASSED
                                   T3     WAIVED
U1     U1     TP2                         C4     INPROGRESS
               50     OBJ11     50     30     C11     PASSED
**The second row where we have another training_plan record and accordingly all objectivesand their objective.**similarly ,i need to display many Training_plan records in such tabular format.Please help with the SQL query to select and display data in the above format
If you want to suppress duplicate values in some of your results columns
I am using toad 9.1 using Oracle 10g version 2

Hi,
You can use the BREAK command to suppress duplicate values.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12009.htm#SQPUG030
(scroll down for an example)
It's a 'SQL*Plus-ism', not sure if TOAD's capable to handle it.
Simple example:
HR%xe> break on department_name
HR%xe> select l.department_name
  2  ,        e.last_name
  3  ,        e.first_name
  4  from     departments l
  5  ,        employees e
  6  where    e.department_id = l.department_id;
DEPARTMENT_NAME                LAST_NAME                 FIRST_NAME
Executive                      King                      Steven
                               Kochhar                   Neena
                               De Haan                   Lex
IT                             Hunold                    Alexander
                               Ernst                     Bruce
                               Austin                    David
                               Pataballa                 Valli
                               Lorentz                   Diana
Finance                        Greenberg                 Nancy
                               Faviet                    Daniel
                               Chen                      John
                               Sciarra                   Ismael
                               Urman                     Jose Manuel
                               Popp                      Luis
Purchasing                     Raphaely                  Den
                               Khoo                      Alexander
                               Baida                     Shelli
                               Tobias                    Sigal
                               Himuro                    Guy
                               Colmenares                Karen
Shipping                       Weiss                     Matthew
                               Fripp                     Adam
                               Kaufling                  Payam
                               Vollman                   Shanta
                               Mourgos                   Kevin
                               Nayer                     Julia
                               Mikkilineni               Irene
                               Landry                    James
Public Relations               Baer                      Hermann
Accounting                     Higgins                   Shelley
                               Gietz                     William
106 rijen zijn geselecteerd.

Similar Messages

  • Warning Message - Conditions with Result Rows Suppress

    Hi All
    I created a query with conditions and 'Suppress Result Rows - always '. When I run the query in Bex, I get this warning message showing me that conditions exist with result rows suppressed '. Is there a way to avoid getting this warning message.
    Thanks

    Hi Krishna,
    If you want to suppress the message for all users centrally for this particular query, you can do so in RSRT. Put in your query technical name and click on the Messages Button. Check as required to suppress.
    Hope this helps...

  • Need help in converting date format

    Hi,
    Need help in converting date format from 'DD-MON-YYYY' to 'YYYY-MM-DD' in an .rtf template as I believe xml publisher supports the date format as 'YYYY-MM-DD' only.
    Thanks,
    Raj.

    I got the same problem, anyone know how to solve this problem? I allready found some date functions on http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html . I also tried <?xdoxslt:month_name(xdoxslt:get_month(xdofx:substr(NEED_BY_DATE, 4,3)), $_XDOLOCALE), 0, 'nl-NL')?>, but then it returns a namespace error (Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.). Anyone know how to fix this?
    Edited by: user11165753 on 7-dec-2009 23:50

  • Need Help/Advice with Photo Web Gallery coming from SQL Database

    This is my first attempt at a database driven website. I assume what I am trying to accomplish should be fairly easy for more experienced but I am stuck at this point.
    First, let me explain what I am trying to accomplish.
    I want to create a thumbnail photo gallery displayed in columns and rows. I want to be able to hover over or click on the thumbnail image and have a lightbox script display the image over the thumb page. I am developing locally right now with intent to upload to the hosting site upon completion.
    I am developing with ASP vbScript pages. I have an SQL database where the paths to the image thumbnails and pictures are stored in a table. On the gallery page, I have created a div tag to hold my image recordset. Within this div, I have inserted 3 absolute positioned divs to hold the pictureID, the pictureName and the image inserted as a datasource. I then inserted the information from the bindings panel of my recordset. Last, I used a horizontal looper extension from Tom Muck to get the thumbnails to display in columns and rows. Everything works up to this point just fine.
    Now, I want to be able to hover or click on a thumnail image and have it displayed in a lightbox. I downloaded and used a javascript called Lightbox 2 which contains 3 javascript files and a css stylesheet. I inserted the files into the head tag like instructed to but could not get things to work properly. Here is where I need help. Currently, I am clicking on the thumbImage binding within the image Div and creating a link holder. I am then binding the larger pictureImage to it with the a.href selected in the bind to. I am then adding the command to call the lightbox javascript. Now, when I test my page, my thumbnail images do not show up (my alt text does in its place) but the links are in place and you can click on the alt text and it will return the correct larger image, but not in the lightbox, just in a new window with no styles.
    Am I going about this correctly? Can you use lightbox scripts with data-driven galleries? Does anybody have any suggestions of what I may be doing wrong or missing? Are there better ways to go about accomplishing this?
    Any help would be appreciated as this dynamic data thing has my head spinning. Although I know a database is needed to simplify the update and maintenance of the photos while allowing them to be searchable by keywords and tags also set up in the database.
    Thanks

    As I explained, I am developing locally a the moment. I will see about getting the databased moved up to the hosting server and then provide a link for an example.
    In the mean time, can you or anyone else explain a way that you would go about displaying an image thumbnail photo gallery laid out in rows / columns, with any lighbox script that would overlay the larger image over the existing page instead of opening a new browser window?
    I don't have to use the method I tried to describe.
    In all of the lightbox examples I have looked at thus far, they give instructions on how to append that javascript to a single static image or a group of static images, not images from a datasource. That is where I am getting confused.
    Don't know if this will help or not but please see code below:
    Javascript and CSS positioned in head tag
    <!--beginning of lightbox script with css -->
    <link href="CSS/lightbox.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/protype.js" type="text/javascript"></script>
    <script src="Scripts/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
    <script src="Scripts/lightbox.js" type="text/javascript"></script>
    <!--end of lightbox script with css -->
    Calling for javascript in the galleryimage div when hovering over thumbnail image
        <!--beginning of gallery div -->
        <div id="gallery">
          <p>
            <!--beginning of galleryImage div -->
          </p>
          <table width="400" border="0" align="center" id="galleryNav2">
            <tr>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                  <a href="<%=MM_moveFirst%>">First</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                <a href="<%=MM_movePrev%>">Previous</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                <a href="<%=MM_moveNext%>">Next</a>
              <% End If ' end Not MM_atTotal %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                <a href="<%=MM_moveLast%>">Last</a>
              <% End If ' end Not MM_atTotal %></td>
            </tr>
          </table>
          <p> </p>
          <table align="center" id="HorzLooper">
            <%
    startrw = 0
    endrw = HLooper1__index
    numberColumns = 5
    numrows = 5
    while((numrows <> 0) AND (Not rs_ssfGallery.EOF))
    startrw = endrw + 1
    endrw = endrw + numberColumns
    %>
            <tr align="center" valign="top">
              <%
    While ((startrw <= endrw) AND (Not rs_ssfGallery.EOF))
    %>
              <td><div id="galleryImage">
                <div id="galleryThumb"><a href="images/pic/<%=(rs_ssfGallery.Fields.Item("picture_url").Value)%>"rel="lightbox"><img src="images/thumb/<%=(rs_ssfGallery.Fields.Item("thumb_url").Value)%>" alt="<%=(rs_ssfGallery.Fields.Item("alt_url").Value)%>" /></a></div>
                <div id="galleryImageID"><%=(rs_ssfGallery.Fields.Item("picture_ID").Value)%></div>
                <div id="galleryImageFamily"><%=(rs_ssfGallery.Fields.Item("family").Value)%></div>
              </div></td>
              <%
    startrw = startrw + 1
    rs_ssfGallery.MoveNext()
    Wend
    %>
            </tr>
            <%
    numrows=numrows-1
    Wend
    %>
          </table>
          <p> </p>
          <table width="400" border="0" align="center" id="galleryNav">
            <tr>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                  <a href="<%=MM_moveFirst%>">First</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If MM_offset <> 0 Then %>
                  <a href="<%=MM_movePrev%>">Previous</a>
              <% End If ' end MM_offset <> 0 %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                  <a href="<%=MM_moveNext%>">Next</a>
              <% End If ' end Not MM_atTotal %></td>
              <td width="100" align="center"><% If Not MM_atTotal Then %>
                  <a href="<%=MM_moveLast%>">Last</a>
              <% End If ' end Not MM_atTotal %></td>
            </tr>
          </table>
    <!--end of galleryImage div -->
        </div>
        <!--end of gallery div -->
    Thanks for any help or suggestions.

  • Need help in the String Format method

    really need help in string.Format method. I would like to show the s in two digit numbers.
    for example:
    if s is below 10 then display *0s*
    the expecting result is 01,02,03.. 09,10,11....
    I tried this method, somehow i got the errors msg. pls advise. thx.
    public void setDisplay(String s) {
    String tmpSS=String.format("%02d",s);
    this.ss.setText(tmpSS);
    Edited by: bluesailormoon on May 19, 2008 10:30 AM

    Apparently, you expect the string to consist of one or two digits. If that's true, you could do this:String tmpSS = (s.length() == 1) ? ("0" + s) : s; or this: String tmpSS = String.format("%02d", Integer.parseInt(s));

  • Need help please with ipod mini

    Hi,I had my ipod mini sent into service as the pasue button was bust and I now have a totally new ipod mini send out and Im trying to install it on the pC and it doesnt let me,need help pls

    You may need to format the iPod for use with Windows.
    Try this instead of using the supplied installation CD.
    Download the iPod Updater, install this to your computer, restart the computer, run the Updater, then connect your iPod when prompted (not before), then follow the set up procedure.
    If this is what you are having problems with, then post back with what happens and any error messages you see.

  • Need help urgently with OS X and Windows 7

    I need help urgently.
    I installed Windows 7 on my macbook pro with OS X Lion. After installing Windows7, I accidently converted the basic volumes to dynamic volumes and now i can't even boot to OS X.
    Please help me how to recover my OS X Lion. If I have to delete Windows and bootcamp partitions, it is OK.
    I just want to get back my OS X bootable.
    Thanks

    thihaoo wrote:
    Sorry
    I can't even see the OS X partition when I hold down the "Option" key.
    I could see OS X and Windows partitions if I hold down Option key before changing the partitions to Dynamic partitions from Basic in Windows 7.
    Now can't see OS X partiton and only see Winodws partition but when I tried to boot onto Windows7 , I got BSOD and macbook pro restart.
    Please help
    The usual reason for the OSX partition to be invisible under these circumstances is that it has been trashed by Windows.
    Do you have a backup?

  • Need help ASAP with photoshop elements 11

    Please I need help its photoshop elements 11 but I can't put up the pic I need help with could someone help me out by using Facebook, Amanda Jayne Clarke I have a pic of a little girl n a horse
    Please i need help ASAP

    well you can find many tutorials about how to change background in Photoshop Elements. It ranges all the way from using magic extractor to making a selection using lasso and magnetic lasso tools. But I really prefer using a mask for it. Here is how I would change the background of image A and use Image B as the background.
    Open image B in photoshop elements editor- expert mode.
    go to file->place and choose the image A to place over image B
    go to layers panel by choosing Window-> layers from menu bar. Right click the layer A choose simplify layer.
    with layer A selected, choose layer>layer mask> reveal All from menu bar. It would create a layer mask on the layer A.
    Select the mark layer of layer A, choose the brush tool and change foreground color to black. Paint all over the are you want to remove from the layer A. if you make an error, change the color white to get your image area back. it is a good practice to use lower opacity(~60) while using layer mark as it gives you more control over with how much opacity you want to remove the background
    Happy Editing

  • Need Help Please with Ipod 20G

    Long story short....I had my Ipod 4G and computer stolen several month ago on a business trip(have police report). A friend of mine recently purchased a new Video Ipod and gave me his old 20G...pretty nice of him! I am about to have iTunes loaded on to my new computer. Here are my questions I need help with please.
    1. Will I need to setup a new iTunes account or can I use my old one?
    2. Will I have to reset my newly acquired Ipod before I can place my music on it? I did back up about 80% of the songs from my old Ipod. Or will I be able to keep the 1500 songs my friend placed on it?
    3. Or would it be easier for me to give him back his, cough up the $300 dollars for a new one and start all over?
    Can't think of anything else I might need to know. If there is something I am missing and you could help fill in the blanks for me I would truly appreciate the help.
    Thanks so much!!
    20G   Windows 2000  
    20G   Windows 2000  

    1. No. You can use your old one.
    2. Will I have to reset my newly acquired Ipod before I can place my music on it? No, but iTunes may automatically do this, I will explain.
    I did back up about 80% of the songs from my old Ipod. Or will I be able to keep the 1500 songs my friend placed on it?
    Sorry, but it would not be legal to keep the 1500 songs on this iPod that were your friend's songs, assuming that he's still using/listening to them on another computer.
    3. No, I think it would be worth it to keep going, and use the 20GB iPod on your computer. It's not many hoops to jump through, and you should be up and syncing in no time.
    Overall, it's fairly easy, and I would suggest that you keep going with this iPod.
    My note from question #2:
    If you connect an iPod that hasn't been attatched to your computer before, iTunes will most likely display [to the effect of] this message when you connect the iPod for the first time:
    "The songs on the iPod "~~" are linked to another iTunes library. Would you like to replace the content of the iPod with this current iTunes library?"
    Be sure to click on "NO" when you recieve this message.
    Then, click on your iPod's name in the left panel of iTunes.
    Click on the "Music" tab.
    Deselect "Sync Music" if it is already set to this option.
    This means that your iPod is on manual managing now, instead of iTunes automatically transferring songs to your iPod, or deleting them, which is not what you want at this time.
    Now, if you have any songs on the iPod that you need to keep (i.e., if you have some of your songs on this iPod)you have a few options to transfer your iPod songs to your computer.
    Method 1 - Manually transfer your iPod songs to iTunes using MacMuse's post. See it here -> iPod songs to computer (MacMuse post)
    Method 2 - Add your iPod's folder into the iTunes library (via iTunes). Read this post here -> Using iTunes settings to transfer iPod songs to iTunes
    Method 3 - Use a third-party program to get the transferring done. For a Windows computer, CopyPod should work good. Also, you can try out YamiPod
    I hope that info helps you.
    -Kylene

  • Need help identifying this video format

    A lady on the east coast made a documentary video but said that it was filled with pauses, for some reason. I told her that I'd import it into FCP and edit out the pauses for her.
    So she mailed me the DVD-R, and I tried to play it on my Mac, but DVD Player won't open it (a message appears saying "The media type is not supported.") Nor will the DVD player in a TV I have. Quicktime Player doesn't recognize it either.
    So I have to figure out how to play this thing.
    When I put the DVD-R into the Mac's optical drive, the icon of a DVD appears on the desktop. When I double-click on the icon, a window appears with a folder labeled DVD_VIDEO_RECORDER
    Inside this folder is another one labeled VIDEO_TS
    Inside that folder is a bunch of gray icons with "Exec" on them, labeled VIDEO_TS_BUP, VIDEO_TS_IFO, VIDEO_TS_VOB, and several labeled VTS_01_1.VOB, VTS_01_2.VOB., etc.
    Can anyone help me identify what format this video is in, and what sort of a player can play it?

    It's a DVD Video disc but it sounds like it was not "finalized" in the recorder that made it.
    You might be able to extract the .VOB files (the only interesting parts) with MPEG Streamclip.
    Read this: http://www.secondchairvideo.com/?p=739

  • Need help on Oracle Report format

    Hi,
    I need help on Oracle Reports. I am generating a report in excel sheet. I have a column which is 13 digit number (In database it is CHAR datatype). In excel sheet it showing some thing like 9.78381E+12. I want to show complete number like 9783805591331.
    Also sometimes leading zero's are not showing when my column values is something like 0098794859583. I need to show the leading zero's as well in excel without losing them.
    Below are the parameters i am using for the report
    DESFORMAT=SPREADSHEET AND DESTYPE=FILE
    My Oracle 9i developer version.
    Any help on this would be much appreciated.
    Thanks
    Kishore

    An additional quote string ' character with the number field will solve this problem but if u want to display this field in report then it will look ugly
    '''||yourfield from table; check ur regional settings also
    plz mark it helpful correct if it is

  • Need help SQL

    Hi Friends,
    Having a table containing these three values in different records (any combination) for
    a single primary id.
    Oracle DB 10g EE Release 10.2.0.3.0 - 64bi
    EXAMPLE
    123 AAA     
    123 AAA
    124 AAA
    124 AAA
    124 BBB
    125 AAA
    125 BBB
    125 CCCNeed to identify in which group does that primary key belong and I need to assign a value for that.
    Currently I have a function for this req and am calling it from my SELECT query and it takes more time.
    Can it be done in any other way. Please advice.
    Marlon

    Hi, If you are using Oracle 11g then, below sql gives your desired output.
    with t as
          select 123 Val1, 'AAA' Val2 from dual union all
          select 123, 'AAA' from dual union all
          select 124, 'AAA' from dual union all
          select 124, 'AAA' from dual union all
          select 124, 'BBB' from dual union all
          select 125, 'AAA' from dual union all
          select 125, 'BBB' from dual union all
         select 125, 'CCC' from dual
    select val1,val2,length(val2)-length(replace(val2,','))+1
    from
    select val1,listagg(val2,',') within group (order by val1) val2
    from (select distinct val1,val2 from t)
    group by val1)
    /If you are working on 9i, u can use the below sql
    with t as
          select 123 Val1, 'AAA' Val2 from dual union all
          select 123, 'AAA' from dual union all
          select 124, 'AAA' from dual union all
          select 124, 'AAA' from dual union all
          select 124, 'BBB' from dual union all
          select 125, 'AAA' from dual union all
          select 125, 'BBB' from dual union all
         select 125, 'CCC' from dual
    select val1,val2,length(val2)-length(replace(val2,','))+1
    from
    select val1,
    rtrim (xmlagg (xmlelement (e, val2 ||',')).extract ('//text()'), ',') val2
    from (select distinct val1,val2 from t)
    group by val1)
    /

  • Need help dealing with nested audio in Premiere Pro CC 7.2.2

    Hi, so previously I have been working with nested multicam video and nested audio together (one video track, and one audio track).
    However, I am hitting some issues with the nested audio workflow, and am hoping someone could help me iron out my issues.
    1. Once I've completed my edit, how do I efficiently flatten my nested edits so I have all of my original audio back? (For mixing purposes)
    2. Audio nesting sometimes seems glitchy. When making new nests, sometimes I will only get the topmost audio track in my nest, and I'm not sure what's causing that to happen.
    I REALLY need helping getting my workflow together, as it's at a bit of a stand still right now. I think I'm going to switch to unnested audio to avoid issues, but still need to flatten my existing edits to do that as well.
    Many thanks!

    This bug is NOT FULLY FIXED.  I'm on a tight deadline so i'm not looking very hard online to see if i'm alone - so please forgive me for just posting here...
    I'm using CC7.2.1 it's 1/21... very grateful that match frame FINALLY works on merged clips, but, again, this insert/overwrite bug is only PARTIALLY FIXED.
    Insert/overwrite with merged clips on 3-point edit now works, but ONLY when cutting in BOTH merged video+audio... if you're just trying to cut in the audio from a merged clip using a 3-point/4-point edit via hotkey, it's a no-go.
    I, for example, needed to re-cut in audio under some video with effects on it. So, I unpatched the video source completely and patched source audio tracks 1-4 to the appropriate sequence tracks. Upon hitting insert or overwrite multiple times, nothing responds. The only way to cut anything in from the source (merged clip) was to patch the source video back into the timeline on an unused video track, then cut ALL the tracks from the source in, I then had to delete the video track re-link the now free audio to the original video. Not a big deal, but annoying enough & waste of precious time on tight deadline.
    So, yeah, I have a workaround but is still not appropriate to have a core function not work properly. Especially when I'm working with a very complicated timeline.
    That said, thanks for keeping on top of our gripes, Mark.

  • I need help badly with my ibook and palm pilot

    Good day. I recently fixed my ibook and my palm to sync with each other. I configured my palm to sync with entourage. I then realized that it would be much better that if I sync my palm pilot with the palm desktop. Gow do I now reverse this? How do i cancel entourage to sync with my pal pilot. please advise. need help badly on this. thanks... i just like to feep my files organized and i find it difficult using entourage...my palm pilot is a palm TX...

    I also have a Palm handheld. I use iCal and Address Book more than Entourage. This is what I did:
    At first, I tried to adapt to Palm Desktop. I didn't like it, so I looked for the *iSync Conduit*. I found it and installed it. Then, I ignored the Palm desktop software (except the HotSync utility) and have used iSync with iCal and Address Book since.
    I know that doesn't answer the question about switching from Entourage, but Desktop isn't that great either. iSync is what I recommend.
    -NA

  • Need help in Overwriting result in text file

    Sorry, im new to Labview.
    My situation is
    this.
    I can store the name and the result and i have the index.
    Now
    I'm having a problem on overwriting result i had in text file.
    I
    give you an example.
    Now in my text file i have a name of a
    student and the result.
    i wan to overwrite the result of the
    student.(this is just an example.)
    can someone guide me please?
    really
    need help as this is my school project.
    Thanks!
    i'll attach my program i have done soon.

    you got the wrong idea.
    i do not want to replace the file to a new file.
    what i want was to edit the exsiting file if the same name appear twice.
    Example:
    in my text file i have already had the name of example Tom and result 80
    and now i input the same name and diff result.
    i wan was to overwrite the result. 
    my project was similar to this here is my attachment of my project
    Attachments:
    LOCATOR.vi ‏19 KB
    TESTCAR.txt ‏1 KB

Maybe you are looking for