Remove Items

Discussion in 'ASP .Net' started by shapper, Mar 7, 2007.

  1. shapper

    shapper Guest

    Hello,

    I have 2 datasets, A and B.

    I need to remove all elements in A that already exist in B.

    How can I do this?

    Thanks,

    Miguel
    shapper, Mar 7, 2007
    #1
    1. Advertising

  2. Just loop through the rows of the table in A and run the Select method for
    the table in B. Depending on the data there could be more effective ways but
    the basic idea is that simple.

    --
    Eliyahu Goldin,
    Software Developer & Consultant
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net


    "shapper" <> wrote in message
    news:...
    > Hello,
    >
    > I have 2 datasets, A and B.
    >
    > I need to remove all elements in A that already exist in B.
    >
    > How can I do this?
    >
    > Thanks,
    >
    > Miguel
    >
    Eliyahu Goldin, Mar 7, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gilles Kuhn
    Replies:
    0
    Views:
    436
    Gilles Kuhn
    Sep 15, 2003
  2. Bart Van Hemelen
    Replies:
    2
    Views:
    4,667
    Bart Van Hemelen
    Sep 4, 2006
  3. Larry Bud
    Replies:
    13
    Views:
    7,680
    Larry Bud
    Jan 7, 2008
  4. Ben
    Replies:
    2
    Views:
    884
  5. Anjan Bhowmik
    Replies:
    1
    Views:
    471
    Misbah Arefin
    Feb 14, 2008
Loading...

Share This Page