in reply to Re: Process and combine two CSV files into one
in thread Process and combine two CSV files into one
My 2 tables get joined. The only issue is that I get a warning:my @row = $dbh->selectall_arrayref("SELECT IP, ServerName, Domain, Day +sUptime, OS, RAM, OSSP, InstallDate, CPUSpeed, CPUCount, CPUType FROM + hosts LEFT JOIN info ON hosts.IP = info.IP");
Execution ERROR: Ambiguous column name 'IP' called from /usr/lib/perl5 +/vendor_perl/5.8.6/i586-linux-thread-multi/DBI.pm at 1557.
In the end, I want ALL data from hosts, and the relevant data from the other tables.my @row = $dbh->selectall_arrayref("SELECT IP, ServerName, Domain, Day +sUptime, OS, RAM, OSSP, InstallDate, CPUSpeed, CPUCount, CPUType, Par +titionFree FROM hosts, disks LEFT JOIN info ON hosts.IP = info.IP AND + hosts.IP = disks.IP");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Process and combine two CSV files into one
by anonymized user 468275 (Curate) on Aug 15, 2005 at 08:02 UTC |