The final step of my process is causing me the most headache. I have all but the last table combined. Ths issues are:

The data in the last table looks like:

Server,Statistic,Average "ERWWCOMMUNITIES","MemoryPagessec",16.436370 "ERWWCOMMUNITIES","NetworkInterfaceCompaqEthernetFastEthernetAdapterMo +duleBytesT otalsec",157380.618090 "ERWWCOMMUNITIES","PhysicalDisk0CPCTDiskTime",33960995.990210 "ERWWCOMMUNITIES","PhysicalDisk1DPCTDiskTime",3158277.602200 "ERWWCOMMUNITIES","PhysicalDiskTotalPCTDiskTime",2541682.536690 "ERWWCOMMUNITIES","PhysicalDiskTotalAvgDiskQueueLength",508335953.6655 +60 "ERWWCOMMUNITIES","ProcessorTotalPCTProcessorTime",1.838210

The first column contains the data I will use to join to the other table. The second column will determine where the data in column 3 will go.

How do I perform a join that will collect this data? My other table looks like:
IP,ServerName,Domain,DaysUptime,OS,RAM,OSSP,InstallDate,CPUSpeed,CPUCo +unt,CPUType,PartitionSize,PartitionFree 10.160.0.1,, 10.160.0.2,, 10.160.0.3,, 10.160.0.4,, 10.160.0.5,, 10.160.0.6,, 10.160.0.7,, 10.160.0.8,, 10.160.0.9,, 10.160.0.10,ERWWDC1,EURORSCG,19,Microsoft_Windows_2000_Server_Domain_C +ontroller,1024,4,12_2_2003,995,1,Intel_Pentium_III,8400,4600 10.160.0.11,ERWWSQLWEB,EURORSCG,266,Microsoft_Windows_2000_Server,2048 +,3,11_21_2003,3000,4,Intel_Xeon,205000,113700 10.160.0.12,ERWWSEARCH,EURORSCG,21,Microsoft_Windows_2000_Server,1024, +3,11_24_2003,1000,1,Intel_Pentium_III,67700,61000

I need all the data from the second table (a left join, right?) and the relevant data from the first table.

Ideally, the columns for the final table should look something like:
IP,ServerName,Domain,DaysUptime,OS,RAM,OSSP,InstallDate,CPUSpeed,CPUCo +unt, CPUType,PartitionSize,PartitionFree,MemoryPagessec,NetworkBytessec, PhysicalDiskTotalPCTDiskTime,PhysicalDiskTotalAvgDiskQueueLength, ProcessorTotalPCTProcessorTime

In reply to Re^2: Process and combine two CSV files into one by DrAxeman
in thread Process and combine two CSV files into one by DrAxeman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.