Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Arnold

I Have One Table having 4 fields like Plant, prod_hier, date, Amount see the below table

PLANTPROD_HIERDATEAmount
3201101-04-20141000
3211202-04-20142000
3221303-04-20143000
3231404-04-20144000
3241505-04-20145000
3251606-04-20146000
3261707-04-20147000
3271808-04-20148000
3281909-04-20149000
32911010-04-201410000
4201101-04-20141000
4211202-04-20142000
4221303-04-20143000
4231404-04-20144000
4241505-04-20145000
42511116-04-20146000
42611217-04-20147000
42711318-04-20148000
42811419-04-20149000
42911010-04-201410000

My Question is PROD_HIER contains 2 equal 1's i want to display in PROD_HIER field 2 equal 1's as well as Plant field

plant   prod_hier

3201     1

4201     1

as well as what is Greater than and Less Than of Plant used by prod_hier

1 Solution

Accepted Solutions
its_anandrjs

Please explain more about the requirement with an example.

View solution in original post

7 Replies
Joseph_Musekura
Support
Support

Hi,

I can’t see what you want to achieve. Do you want to keep only
2 values in the column/field Plant?

Can you please add how the final table result (needed table
result) looks like?

/joseph

its_anandrjs

Please explain more about the requirement with an example.

Not applicable
Author

FROM THE GIVEN TABLE

PLANT   PROD_HIER  DATE AMOUNT

PLANTPROD_HIERDATEAmount
3201101-04-20141000
3211202-04-20142000
3221303-04-20143000
3231404-04-20144000
3241505-04-20145000
3251606-04-20146000
3261707-04-20147000
3271808-04-20148000
3281909-04-20149000
32911010-04-201410000
4201101-04-20141000
4211202-04-20142000
4221303-04-20143000
4231404-04-20144000
4241505-04-20145000
42511116-04-20146000
42611217-04-20147000
42711318-04-20148000
42811419-04-20149000
42911010-04-201410000

I WANT TO DISPLAY LIKE THIS

PLANTPROD_HIERDATEAmount
3201101-04-20141000

4201101-04-20141000

AND WHICH ONE IS 'GREATER THAN' OR 'LESS THAN' IN PLANT USING PROD_HIER

its_anandrjs

Still not clear in which condition the below data shown.

PLANTPROD_HIERDATEAmount
3201101-04-20141000
4201101-04-20141000

Thanks

Not applicable
Author

condition is ''if i click 1 i wanna show highest value of PLANT field''

Not applicable
Author

condition is ''if i click 1 i wanna show highest value of PLANT field'' and i wanna add new field is highest column based on PROD_HIER


PLANTPROD_HIERDATEAmount
3201101-04-20141000
4201101-04-2014

1000


Finally i wanna display below given table

Once again the condition is highest value of the PLANT field based on PROD_HIER


plant            prod_hier              date              Amount               higher new field


3201                  1                01-04-2014          1000                 4201



Thanks

Not applicable
Author

condition is ''if i click 1 i wanna show highest value of PLANT field'' based on PROD_HIER and i wanna add new field is highest column i.e 4201


PLANTPROD_HIERDATEAmount
3201101-04-20141000
4201101-04-2014

1000


Finally i wanna display below given table

Once again the condition is highest value of the PLANT field based on PROD_HIER


plant            prod_hier              date              Amount               higher new field


3201                  1                01-04-2014          1000                 4201



Thanks