Answer the question
In order to leave comments, you need to log in
How can I select data from a database based on an arithmetic condition in Ruby on Rails?
For example, there is a Table1 table, and there are price and price_paid fields.
I want to select items where at price - price_paid > 0.
How can I do this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question