Re: Data Comparison

Jeff Miller
Fri, 08 Feb 2008 02:04:53 -0000

Thank you very much for that detailed response! It clarified a lot for
me. Sorry I didn''t include enough information... I am very new to RoR
and I haven''t used any kind of MVC type framework before. Both my
models
are empty (I don''t really know what I would put in them...) and table1
is called ''bes'' and table2 is called
''imports''. Everything seems to be
working great! I tried to get the OUTER JOIN sql statement to work, but
it actually gives me both matches and non-matches, instead of just
non-matches. I know its not really a Ruby deal, but do you know the
correct statement? I''ve been trying to look it up, but no luck so far.

@nonmatches = Bes.connection.select_all("SELECT bes.bes_phonenumber AS
number, bes.bes_displayname AS name, imports.prov_service_number AS
prov_number FROM bes LEFT OUTER JOIN imports ON bes.bes_phonenumber =
imports.prov_service_number")


Thanks dude! I really appreciate your help!
--
Posted via http://www.ruby-forum.com/.