CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    1

    using 3 tables to create a new table

    Hi,
    I need to create a table with 2 columns (Name and LastDate). Row amount depend on the source tables. I get various tables from the system using the following line:

    Code:
       DataSet myDS = new DataSet();   
       myDS = DataObjects["QueryResult"] as System.Data.DataSet;
    The "Name" values are in one table; the "LastDate" values are in a different table and there is a third table wich has a code/index to relate both.

    I need help; I'm SOOO LOST in C#. I'm a self thaught VBA coder but I'm strugeling with this virtual tables/grids/datsets, etc.

    I searched the net, and found the following tools.
    Code:
    Dictionary<string, string> key2count = new Dictionary<string, string>();
    foreach (KeyValuePair<string, string> kv in key2count)
    Unfortunatelly they aint working for me.

    I really appreciate any help (code or further documentations links)

    P.S. I'm attaching an excel document with a sample of the source tables and sample of the desired output.

    Thanks
    Attached Files Attached Files

  2. #2
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: using 3 tables to create a new table

    ...
    P.S. I'm attaching an excel document with a sample of the source tables and sample of the desired output.

    Thanks
    This doesn't really look for me to be a problem of C# , but more that looks me to be a problem of a correct sql query
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured