SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field

Hi,
I am using Access 2013 and I have the following VBA code, 
strSQL = "INSERT INTO Master SELECT * from Master WHERE ID = 1"
 DoCmd.RunSQL (strSQL)
when the SQL statement is run, I got this error.
SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field
Any suggestion on how to get around this?
Please advice and your help would be greatly appreciated!

Rather than modelling the many-to-many relationship type by means of a multi-valued field, do so by the conventional means of modelling the relationship type by a table which resolves it into two one-to-many relationship types.  You give no indication
of what is being modelled here, so let's assume a generic model where there is a many-to-many relationship type between Masters and Slaves, for which you'd have the following tables:
Masters
....MasterID  (PK)
....Master
Slaves
....SlaveID  (PK)
....Slave
and to model the relationship type:
SlaveMastership
....SlaveID  (FK)
....MasterID  (FK)
The primary key of the last is a composite one of the two foreign keys SlaveID and MasterID.
You appear to be trying to insert duplicates of a subset of rows from the same table.  With the above structure, to do this you would firstly have to insert rows into the referenced table Masters for all columns bar the key, which, presuming this to be
an autonumber column, would be assigned new values automatically.  To map these new rows to the same rows in Slaves as the original subset you would then need to insert rows into SlaveMastership with the same SlaveID values as those in Slaves referenced
by those rows in Slavemastership which referenced the keys of the original subset of rows from Masters, and the MasterID values of the rows inserted in the first insert operation.  This would require joins to be made between the original and the new subsets
of rows in two instances of Masters on other columns which constitute a candidate key of Masters, so that the rows from SlaveMastership can be identified.
You'll find examples of these sort of insert operations in DecomposerDemo.zip in my public databases folder at:
https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
In this little demo file non-normalized data from Excel is decomposed into a set of normalized tables.  Unlike your situation this does not involve duplication of rows into the same table, but the methodology for the insertion of rows into a table which
models a many-to-many relationship type is broadly the same.
The fact that you have this requirement to duplicate a subset of rows into the same table, however, does make me wonder about the validity of the underlying logical model.  I think it would help us if you could describe in detail just what in real world
terms is being modelled by this table, and the purpose of the insert operation which you are attempting.
Ken Sheridan, Stafford, England

Similar Messages

  • Insert a query on the source table from ODI to Planning

    Hi, I'm creating an ODI Interface. As source I have a table and as target a Planning dimension.
    I'd like to extract record from my source table in a specified order (select * from MYTABLE order by ORD).
    Where can I write this command?
    Thanks in advance,
    Roberta

    Hi,
    Would it not just be easy to create a view on top of your table to extract in the way you want then use that view as the source in ODI.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • I cannot download Mavericks. Every time the file download stops a message appears that says the file is damaged and cannot be used to install Mavericks. I delete the file, download again and the same message appears. What can I do?

    I cannot download Mavericks. Every time the file download stops a message appears that says the file is damaged and cannot be used to install Mavericks. I delete the file, download again and the same message appears. What can I do?

    I only have one video project that I ever published to iDisk. It didn't have any music or photo files attatched to it, just a few clips stitched together. I can play these clips right now in the Event Library (so I know the source files are on my computer), but strangely, under the Project Library, the project is not there. I'm almost certain that I didn't store the project on iDisk; I just completed the video and published it to iDisk (as a .mov file I think) for family to see. I've tried to figure out how to get iDisk to stop looking for this project to no avail.
    I don't know if others have experienced this, but if I click on any project and on the menu bar select Share --> Remove From --> Media Browser... it lists iPod, iPhone, iPad, tv, Computer and MobileMe. Why would MobileMe be an option here? This is the case for any video project I select. Didn't iLife '11 and/or OSX 10.8 remove all mention of MobileMe? I wonder if this is part of the problem too.
    Edit: I just removed every project I have from the Media Browser. Still no luck.

  • Executed as user: ADMIN\abc-SQLServer. Linked servers cannot be used under impersonation without a mapping for the impersonated login. [SQLSTATE 42000] (Error 7437). The step failed.

    Hi All, 
    We have verified permissions on both sides,current server and linked server, the user has sysadmin.
    Another key piece of information is that this is happening when executing a SQL Job.
    Thanks.

    Related:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/328616e9-42cb-40d7-a4b1-671d6a492d8f/linked-servers-cannot-be-used-under-impersonation-without-a-mapping-for-the-impersonated-login?forum=sqldatabaseengine
    https://support.microsoft.com/kb/2492477?wa=wsignin1.0
    http://sshakespeareblog.co.uk/2013/07/31/sql-linked-server-and-sql-server-agent/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Does a Insert trigger fire when the insert is committed?

    I'm curious, does a Insert trigger fire when the insert is committed? If you could point to an article as well that would be great !
    Thanks,
    Dman780

    Its depends of FOR | AFTER
    FOR | AFTER
    AFTER specifies that the DML trigger is fired only when all operations specified in the triggering SQL statement have executed successfully. All referential cascade actions and constraint checks also must succeed before this trigger fires.
    AFTER is the default when FOR is the only keyword specified.
    AFTER triggers cannot be defined on views.
    For mor information : http://technet.microsoft.com/en-us/library/ms189799.aspx

  • Does the EBCC takes the timestamp of the files into account when the synchronisation occurs?

    We are running WL Portal 7.0 sp2.
    I had to re-deploy an older version of our portal application.
    I put back the old portal webapp and ran the EBCC to synchronize the approprate
    portalApp-project.
    In the EBCC I specified "Update all the files in the project." but after the deployment
    I received several stacktraces concerning webflows that couldn't be found.
    Does the EBCC takes the timestamp of the files into account when the synchronisation
    occurs?

    tomk wrote:
    The PKGBUILD has a depends array and a makedepends array. Anything that's required at runtime goes in the depends array, and must be installed for the application to run successfully. Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    man PKGBUILD and various wiki pages for more details.
    Anything that's only required at buildtime foes in the makedepends array, and can be removed from the system after the application has been built.
    ==================
    Who remove them ? user or the abs ??
    I think the best method is file dependence , not package dependence.....
    Software is arranged by package. but its dependence is file. When Install a package, pacman check its file dependence, and install the packages which include those files....
    If a  not explicit installed package 's file does not required by any other packages , it can be removed automatically !
    In this situation ,pacman can find packages that not needed after compilation, and remove them.
    Last edited by iamybj (2010-03-22 03:15:06)

  • Using combination of insert into and select to create a new record in the table

    Hello:
    I'm trying to write a stored procedure that receives a record locator parameter
    and then uses this parameter to locate the record and then copy this record
    into the table with a few columns changed.
    I'll use a sample to clarify my question a bit further
    -- Create New Amendment
    function create_amendment(p_mipr_number in mipr.mipr_number%TYPE, p_new_amendment_number in mipr.amendment_number%TYPE)
    return integer is
    new_mipr_id integer;
    begin
    THIS is causing me grief See comments after this block of code
    insert into mipr
    (select mipr_id from mipr where mipr_number=p_mipr_number),
    (select fsc from mipr where mipr_number=p_mipr_number),
    45,
    (select price from mipr where mipr_number=p_mipr_number),
    practical,
    (select part_number from mipr where mipr_number=p_mipr_number);
    THe above will work if I say the following
    insert into mipr
    (select * from mipr where mipr_number=p_mipr_number);
    BUt, Of course this isn't what I want to do... I want to duplicate a record and change about 3 or 4 fields .
    How do I use a combination of more than one select and hard coded values to insert a new record into the table.
    /** Ignore below this is fine... I just put a snippet of a function in here ** The above insert statement is what I need help with
    select (mipr_id) into new_mipr_id from mipr where mipr_number=p_mipr_number + amendment_number=(select max(amendment_number) + 1);
    return new_mipr_id;
    end;
    THANK YOU IN ADVANCE!
    KT

    function create_amendment(p_mipr_number in mipr.mipr_number%TYPE)
    return integer is
    new_mipr_id integer;
    tmp_number number;
    tmp_mipr_id integer;
    begin
    tmp_number :=(select max(amendment_number) from mipr where mipr_number=p_mipr_number);
    Question:
    tmp_number :=1; works..
    tmp_number doesn't work with the select statement?
    Obviously I'm a novice! I can't find anything in my book regarding tmp variables... What should I look under is tmp_number a
    variable or what? In my Oracle book, variable means something different.
    Thanks!
    KT
    I have the following code in my stored procedure:
    Good luck,
    Eric Kamradt

  • How to Select from Oracle 8i database and insert into Sql Server 2005 datab

    Hi how to Select from Oracle 8i and insert into Sql Server 2005.
    Source db as Oracle 8i
    Target db as Sql Server 2005.
    I need to select one table data from Oracle 8i & insert into Sql Server 2005
    Thanks

    Thanks Khan..
    Is there is any query (OPENQUERY) available for that?
    Regards..

  • Using bufferedreader to insert into a vector

    I am trying to read from a text file in an incremental fashion back into a form. I have tried it only reading the first record off the textfile and it works great; however, I run into problems when I try to read the entire file into a Vector or Array. Code is as follows:
    Vector vLine = new vLine(10,1);
    String tCardFile = new String("timecard.txt");
    File file = new File(tCardFile);
    BufferedReader br = new BufferedReader(new FileReader(file));
    String lineRead = null;
    lineRead = new String();
    while((lineRead = br.readLine()) !=null){ vLine.addElement(lineRead);}When I compile, I get this funky error that reads:
    Note: D:\javafiles\TimeCard.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.Now, I have taken the vector back out and tried using an array with 100 elements and I no longer get the above error but I run into two issues:
    First...the "timecard.txt" fill is meant to keep growing so I need a dynamic array like the vector class
    Second...I get a null value as being entered in either the array or the vector.
    Any thoughts ?

    you going to get the same compiler warning about "unchecked or unsafe operations"...
    the reason is because the compiler is not able to guarantee the type safety of your raw ( non-generified ) vector/arraylist operations...
    i.e.
    Vector v = new Vector(); // raw vector
    String s = "a string";
    Integer i = new Integer(1);
    v.add(s); // able to add arbitrary types like a String
    v.add(i); // or an Integer
    String k = (String) v.element(1); // class cast exceptionto fix this, you use generics... then the compiler will ensure that only the data type that the vector is declared to accept via generics will be allowed
    Vector<String> v = new Vector<String>(); // raw vector
    String s = "a string";
    Integer i = new Integer(1);
    v.add(s); // works because v is a Vector of Strings
    v.add(i); // will not work because a Vector of String cannot accept Integer objects
    String k = v.element(1); // no cast necessary because the Vector on handles Stringsit's the same with an ArrayList...
    ArrayList<String> al = new ArrayList<String>();
    have fun...
    - MaxxDmg...
    - ' He who never sleeps... '                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Using RRW3_WEBRFC to insert BW query template into BSP: chart not visible

    Hi people,
    I've done a BSP page which calls a BW query template throught RRW3_WEBRFC function and inserts its code in the BSP. I've used the example code BW web reporting inside a BSP page. and all is OK but the charts.
    Charts are not displayed. I change the "<img src..." of the dowloaded HTML and the chart is displayed in Firefox, but not in Internet Explorer. I've asked more people to test the BSP page with its Explorer, a no one can see the image.
    Does anyone have an idea about whats happening? Maybe some system variable of the web server in SICF is distincting the Client Navigator?
    Thank you very much!
    Edited by: Sergi Marin on Feb 13, 2008 9:26 AM

    Whew! I figured out a really awesome solution, which has a
    ton of uses.
    First of all, as I should have realized, ANY variable in a
    coldfusion tag is going to be figured out when the report is
    called, NOT for every query result. In other words, query.xxx or
    report.xxx or whatever is NEVER going to work correctly inside of a
    tag, not even in a report function or the Advanced Query builder.
    However, there is a straightforward way around this. Simply
    make a report function with arguments, and in your field's
    expression editor call the function and pass in the query or report
    variables:
    #report.yourFunction(query.field1, query.field2)#
    You can do all sorts of Coldfusion function magic and return
    whatever form of result you want.
    For my particular example (dynamically creating a query
    object for a chart to be inserted), I had to add a not-so-obvious
    step: creating my query object with a shared scope (in this case,
    the Request scope), otherwise the variable is trapped in the
    function's scope. So this was my solution: I had a chart with the
    "Print When" option calling my function "getChartQuery" (passing in
    the query variables, of course). The function builds
    "Request.ThisChartQuery" and returns True if there's something in
    it (the "Print When" logic uses the boolean to decide whether to
    show the chart or not). Then my chart is still query-based, but the
    Advanced Query builder has NOTHING in it at all, except for the
    variable containing the query object ("Request.ThisChartQuery").
    There was another solution I found where the report function
    makes the entire chart (using cfchart tags, etc) and saves it as a
    PNG file, and then returns the path to the image. Then you simply
    add an image field to the report, and you use the expression
    builder to call the function. Well, hope this helped someone!
    EDIT: references are "
    http://www.adobe.com/go/ee54cc6"
    and "
    http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:40786"

  • INSERT INTO QUERY AGAINST ORACLE

    I've tested the INSERTINTO query where it successfully pulls data from one table in SQL DB and inserts into another SQL DB.
    However, when I use the same script to pull data from one table in Oracle DB to another table in Oracle DB, I get an error.
    I'm assuming the syntax is a little different for Oracle?
    Added debugging and the query looks like this...
    ** Begin FDM Runtime Error Log Entry [2012-06-27-21:20:57] **
    ERROR:
    Code............................................. 1
    Description...................................... INSERT INTO tWadmin30284128092 (PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) SELECT 752, 12, '31-Mar-2008', 'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount FROM tdataseg4
    Error Message...
    ** Begin FDM Runtime Error Log Entry [2012-06-27-21:10:52] **
    ERROR:
    Code............................................. -2147217900
    Description...................................... ORA-02291: integrity constraint (FDM1113ORCL.FKC_DS6_TCTRLPERIOD) violated - parent key not found
    INSERT /*+ Append */ INTO tDataSeg6 ( PartitionKey, CatKey, PeriodKey, DataView, CurKey, CalcAcctType, ChangeSign, JournalID, Amount, AmountX, Account, AccountX, AccountR, AccountF, Entity, EntityX, EntityR, EntityF, ICP, ICPX, ICPR, ICPF, UD1, UD1X, UD1R, UD1F, UD2, UD2X, UD2R, UD2F, UD3, UD3X, UD3R, UD3F, UD4, UD4X, UD4R, UD4F, DESC1, DESC2, ATTR1, ATTR2, ATTR3, ATTR4, ATTR5, ATTR6, ATTR7, ATTR8, ATTR9, ATTR10, ATTR11, ATTR12, ATTR13, ATTR14, ArchiveID, HasMemoItem, StaticDataKey ) SELECT PartitionKey, CatKey, PeriodKey, DataView, CurKey, CalcAcctType, ChangeSign, JournalID, Amount, AmountX, Account, AccountX, AccountR, AccountF, Entity, EntityX, EntityR, EntityF, ICP, ICPX, ICPR, ICPF, UD1, UD1X, UD1R, UD1F, UD2, UD2X, UD2R, UD2F, UD3, UD3X, UD3R, UD3F, UD4, UD4X, UD4R, UD4F, DESC1, DESC2, ATTR1, ATTR2, ATTR3, ATTR4, ATTR5, ATTR6, ATTR7, ATTR8, ATTR9, ATTR10, ATTR11, ATTR12, ATTR13, ATTR14, ArchiveID, HasMemoItem, StaticDataKey From tWadmin436038889587
    Procedure........................................ clsDataManipulation.fExecuteDML
    Component........................................ upsWDataWindowDM
    Version.......................................... 1111
    Thread........................................... 3888
    Function INSERTINTO(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    'Oracle Hyperion FDM IMPORT Integration Script:
    'Created By:       admin
    'Date Created:       2012-06-27-21:01:10
    'Purpose:
    Dim objSS 'ADODB.Connection
    Dim strSQL 'SQL String
    Dim rs 'Recordset
    Dim rsAppend 'tTB table append rs Object
    Dim strPeriod
    Dim strYear
    'Period
    'strPeriod=MonthName(Month(RES.PdtePerKey))
    a=CStr(FormatDateTime(RES.PdtePerKey,1))
    'Tuesday,January 30, 2012
    b=Right(a,(Len(a)-Len(DW.Utilities.fParseString(a,1,1,",")))) '7
    c=DW.Utilities.fParseString(b,2,2,",")
    strPeriod=Left(c,3)
    'Year
    'strYear=Year(RES.PdtePerKey)
    strYear=Right(b,4)
    DW.DBTools.mLogError 1, CStr(strPeriod), CStr(strYear), Nothing
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    'Connect To SQL Server database
    cnss.open "Provider=OraOLEDB.Oracle.1;Password=password;Persist Security Info=True;User ID=fdm1113orcl;Data Source=orcl"
    'DW.DBTools.mLogError 1, CStr(strSQL), CStr(strSQL), Nothing
    'Initialize common SQL statement
    strSQL = "INSERT INTO " & _
            strWorkTableName & " " & _
            "(PartitionKey, CatKey, PeriodKey, DataView, CalcAcctType, Entity, Account, UD1, UD2, UD4, Amount) " & _
            "SELECT  " & RES.PlngLocKey & ", " & RES.PlngCatKey & ", " & _
            "'" & Day(RES.PdtePerKey) & "-" & MonthName(Month(RES.PdtePerKey), True) & "-" & Year(RES.PdtePerKey) & "', " & _
            "'YTD', 9, Entity, Account, UD1, UD2, UD4, Amount " & _
            "FROM tdataseg4 " '& _
    DW.DBTools.mLogError 1, CStr(strSQL), CStr(strWorkTableName), Nothing
    DW.DataManipulation.fExecuteDML(strSQL)
    'cnss.Execute strSQL
    'Records loaded
    RES.PlngActionType = 6
    RES.PstrActionValue = "SQL Import successful!"
    'Assign Return value
    INSERTINTO = True
    cnss.Close
    Set cnss = Nothing
    End FunctionEdited by: user12152138 on Jun 27, 2012 6:29 PM
    Edited by: user12152138 on Jun 27, 2012 6:33 PM
    Edited by: user12152138 on Jun 27, 2012 6:36 PM
    Edited by: user12152138 on Jun 27, 2012 6:37 PM
    Edited by: user12152138 on Jun 27, 2012 6:46 PM

    Hi together,
    I fixed the problem. I multiply the origin number with 10. The result is a number without any comma. During the insert into MSSql I divide by 10.
    I now, this is a very strange solution but it works.
    Yes I know this helps only, because the column can only save number with one decimal place. For higher decimal places you have to multiple it with 100 or 1000 or......
    Hope this helps also other peoples.
    kind regards
    Joe

  • Select from KONV using Additional Code in ABAP Query

    I'm attempting to modify an ABAP Query Infoset (using transaction SQ02) that already has a join in it between tables VBAP and VBAK, and two additional alias tables on KONV (to get price history for sales documents).  I wish to get history of all PN00 records from KONV.  I can get ONE record with the following code in the Record Processing of the Extras element in my Infoset:
    SELECT SINGLE KBETR KPEIN KMEIN KDATU
    INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE) FROM KONV
      WHERE KNUMV  = VBAK-KNUMV
      AND KPOSN  = VBAP-POSNR
      AND STUNR = 198
      AND ZAEHK = 01.
    But we have many counters (field ZAEHK) for the PN00 condition and I want to have a new row for each PN00 record in KONV.  I've tried some loop syntax, but I've not been able to get any code to function or return more than one row for each sales order item row (VBAP-POSNR).
    Thanks for any hints.
    Dan Gallagher

    Change it like this
    SELECT KBETR KPEIN KMEIN KDATU
      INTO (PN00_PRICE, PN00_PER, PN00_UOM, PN00_DATE)
      FROM KONV
    WHERE KNUMV = VBAK-KNUMV
       AND KPOSN = VBAP-POSNR
       AND STUNR = 198.
    ..... do something with this record and store
    ENDSELECT.

  • How do I get "#" round dates in an "Insert into " query

    I am trying to use the "Insert Into" type "CFQUERY" and insert a date into a field.This date has been input by the user on a web form using the syntax "<input type="text" name="DateInTheatres"...>
    The query is
    <CFQuery datasource="blah">
    Insert into Films(<other fields>,DateInTheatres)
    values(<other fields>,#CreateODBCDate(Form.DateInTheatres)#)
    </CFQuery>
    The above code does not seem to work because the "#" are not automatically put to the left & right of the date so when the sql resolves you get 12/10/2009 (for example) no quotes, nothing.
    How can I fix this?
    many thanks
    Paul 

    Try something like this:
    <cfquery name="someName" datasource="someDatasource">
    INSERT INTO Films
    (SomeField, DateInTheatres)
    VALUES
    <cfqueryparam cfsqltype="cf_sql_varchar" value="#FORM.SomeField#">,
    <cfqueryparam cfsqltype="cf_sql_date" value="#FORM.DateInTheatres#">
    </cfquery>
    Ken Ford

  • Complex insert into query

    I have a table named eps95_contributions:
    emp_code curr_mon due_month contr_amt
    100 200902 201001 400
    100 200903 201001 500
    100 200904 201001 600
    200 200902 201002 200
    200 200903 201002 300
    200 200904 201002 400
    I have another table: year_amt
    I want to insert into this table such that it appears in the following manner:
    emp_code year amt
    100 2009 1500
    200 2009 900
    Please help me with the insert query.
    Edited by: user9027633 on Mar 29, 2010 2:27 AM

    Hi,
    Try This one:
    INSERT INTO year_amt
    (emp_code, year, amt)
    VALUES
    SELECT emp_code,SUBSRT(curr_mon,1,4), SUM(contr_amt) FROM  eps95_contributions
    GROUP BY emp_code,SUBSRT(curr_mon,1,4));

  • HT1923 I cannot print a jewel case insert playlist since installing the newest i-Tunes version.  What should I do?

    Since installing the newest i-tunes version, I cannot print a jewel case insert.  The titles of the songs are jumbled into two or three lines.
    Can this be fixed?

    You might like to look here!!
    https://discussions.apple.com/message/20592308#20592308

Maybe you are looking for

  • Error while updating report attributes

    Hi, Iam getting following error "ORA-20001: Error in DML: p_rowid=181637527721463144, p_alt_rowid=ID, p_rowid2=, p_alt_rowid2=. ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "1D70D6

  • ITunes 11 no longer displaying external hard drive files

    My iTunes library is on an external hard drive and I have iTunes directed to the media on the external hard drive, but no media of any kind is showing when I open iTunes.  This problem started today and as recently as two days ago everything was fine

  • Flash Vars is not working when we accessing from other class files

    Hi all, I'm currently developing a flex application where i need to pass the data from the flash vars to the other class files instead of the main actionscript class file. Does any body know how i should go about doing that?? you can see this below c

  • Changing Invoice Numbers in AP

    When we run the Supplier Merge Program any Invoices that have duplicate Invoice Numbers are not automatically merged! What we need to do is to change the original Invoice number and then run the Merge program once again. We have enabled the Allow Adj

  • Urgent help in searching XML docs

    Hi All, I have started using JDOM and created a XML document after reading the contents from a text file. Now i need to implement a search facility on this XML document. The structure of my XML document is given bellow <Company ID="C1">   <Name>aa</N