I need to find records where two fields are the same (strings). I've tried a handful of things, but they call come back as 'WHERE false'. Here's the two that I thought would work:
puts d.where(Sequel(:field1 == :field2)).to_a.size puts d.where(:field1 == :field2).to_a.size Using a single equals sign throws an error. I can't seem to find any reference to testing two columns, but I looked at Inequality methods, which is where I got the first trial above. Any insights? Cheers -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/77e5a2e4-27c3-4196-8e3a-37d9864b9f69n%40googlegroups.com.
