|
I need to scan this table and get the lines having the lowest value
for n1 or n2
id n1 n2
c1 4 0
c1 3 4
c1 4 5
c1 5 6
If n2 is not 0, I ignore the value of n1.
So in this example I should return 2 lines containing 4 :
c1 4 0
c1 3 4
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.