
CPS
Novice
Sep 14, 2012, 5:31 AM
Views: 6045
|
Searching two-value hash array
|
|
|
Hi, I would like to compare two values in the one hash key. To be more clear let's assume this situation:
HASH KEY |-VALUE-| (a) (b) 250 50 4 <- PAIR 1 50 250 5 <- PAIR 1 47 250 1 <- PAIR 2 101 250 7 <- PAIR 3 250 47 8 <- PAIR 2 250 101 9 <- PAIR 3 And i Would like to get following output: KEYS | a value | b value | total 250 50 | 4 | 5 | 9 47 250 | 1 | 8 | 9 101 250 | 7 | 9 | 16 How i could do that?
(This post was edited by CPS on Sep 14, 2012, 5:33 AM)
|