From: Paul Lutus Date: 2006-09-10T03:25:23+09:00 Subject: Re: Table.find(@params["tag"]) Ben Wright wrote: > ok this gets all records from the table where the id = tag how do i > change this for it to compare the "tag" with a other column apart from > the id?? sorry for being such a noob but thats what i am Split the records into fields, compare the fields to each other: table.each { |record| fields = record.split("\t") # assuming tabs as field separator print "Found it!" if fields[3] == fields[5] } Maybe it would be more productive and educational if you posted your code and asked specific questions. -- Paul Lutus http://www.arachnoid.com