On Aug 18, 10:44 pm, Mindtonic <[email protected]> wrote: > Requesting 2 => [2, 3, 4, 5, 6] > Requesting K => [10, J, Q, K, A] > > If this query is run against a set with less than 5 records, it > returns all 5 records. > > What function, approach or theory should I utilize to accomplish > this? What would the query look like?
In your example given a card like 2 you know it is the smallest one, similarly you know that A is the greatest, that K is greatest bar one and that 3 comes before 4. Do any of these sort of things hold for your actual dataset? Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

