Topic: Find where with or?
I am trying to find data based on 2 columns where one column equals something or the other column equals something. Basically something like this:
.where(:bid_date => @firstdate..@lastdate or :sold_date => @firstdate..@lastdate, :estimator_id => @estid, :gcontractor_id => @gcid, :awarded_amount => @bidwonoptions)
Is there away short of doing it all in sql?