|
-----Message d'origine-----
[mailto:midrange-l-bounces@xxxxxxxxxxxx] De la part de Joe Pluta
In the case below, why is the row [c1, 4, 0] included?Because of the 4 in n1. N2 would not be used as it is 0.
Because it contains 4 in n1, or because it contains 0 in n2?
Why don't you include [c1, 4, 5]? I don't understand the
phrase "should return 2 lines containing 4". There are 3
lines containing 4.
How about adding a few more lines to the test case andThen this would be the only line extracted. The transaction date is 2 which is the lowest for the table.
explaining the result.
If you add [c1, 2, 0] what are the results?
If you add [c1, 2, 5] what are the results?The transaction date is 5 so the row will be ignored.
Hi all,
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
Thanks
--
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing list To post a message email:
MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change
list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting,
please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
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.