TariqMehmod
Programmer
Dear Experts
I have this data in table called Table1
Qty Amount
500 1
600 2
700 3
700 4
700 5
700 6
700 7
700 8
700 9
800 10
900 11
1000 12
1100 13
1200 14
1300 15
1300 16
1300 17
1400 18
1300 19
1300 20
1400 21
I want to get data showing with arrow.
1300 15
Logic
What maximum qty is being used as maximum time?
qty 1400 is maximum but it is being used only 2 times
qty 1300 is not maximum but it is being used 5 times.
qty 700 is not maximum but it is being used 7 times.
So I need a maximum qty based on maximum times with its respective amount like
1300 15 (First occurrence)
Both conditions : maximum qty with maximum number of usage.
Please
I have this data in table called Table1
Qty Amount
500 1
600 2
700 3
700 4
700 5
700 6
700 7
700 8
700 9
800 10
900 11
1000 12
1100 13
1200 14
1300 15
1300 16
1300 17
1400 18
1300 19
1300 20
1400 21
I want to get data showing with arrow.
1300 15
Logic
What maximum qty is being used as maximum time?
qty 1400 is maximum but it is being used only 2 times
qty 1300 is not maximum but it is being used 5 times.
qty 700 is not maximum but it is being used 7 times.
So I need a maximum qty based on maximum times with its respective amount like
1300 15 (First occurrence)
Both conditions : maximum qty with maximum number of usage.
Please