Hello All,
I need help your desperately.
Is it possible to set up an order of precedence query and have the results display in a table format.
Here is my table:
Data Table
APPNO Country Status Number
APP01 US Grant 966333
APP01 EP Pub 5566
APP01 GB Pub 67676
APP01 JP Pub 5555
APP02 US Flg 9090
APP02 EP Grant 123545
APP02 GB Pub 54656765
APP02 JP Pub 8778678
APP03 US DES
APP03 EP DES
I need to have certain order of precedence I must follow the following order of precedence.
Order of Precedence
Ctry Status
1. US Grt
2. US Pub
3. EP Grt
4. EP Pub
5. GB Grt
6. GB Pub
If the Application has a US grant then we select the US Grant and move on to the next Application Number.
For example:
So in the above example for AppNo#1 , the US Grant would be selected
APPNO Country Status Number
APP01 US Grant 966333
Then I would move onto the next application number, AppNO #2
For AppNo#2, we would select the EP Grant
APPNO Country Status Number
APP02 EP Grant 123545
Then I would move onto the next application number, AppNO #3
For AppNo#3, we would NOT select any country because it doesn't have the event grant or pub but the App# should be appear.
APPNO Country Status Number
APP03 US DES
APP03 EP DES
In the end the final result, should have at least one entry for each appno
APPNO Country Status Number
APP01 US Grant 966333
APP02 EP Grant 123545
APP03
I need help your desperately.
Is it possible to set up an order of precedence query and have the results display in a table format.
Here is my table:
Data Table
APPNO Country Status Number
APP01 US Grant 966333
APP01 EP Pub 5566
APP01 GB Pub 67676
APP01 JP Pub 5555
APP02 US Flg 9090
APP02 EP Grant 123545
APP02 GB Pub 54656765
APP02 JP Pub 8778678
APP03 US DES
APP03 EP DES
I need to have certain order of precedence I must follow the following order of precedence.
Order of Precedence
Ctry Status
1. US Grt
2. US Pub
3. EP Grt
4. EP Pub
5. GB Grt
6. GB Pub
If the Application has a US grant then we select the US Grant and move on to the next Application Number.
For example:
So in the above example for AppNo#1 , the US Grant would be selected
APPNO Country Status Number
APP01 US Grant 966333
Then I would move onto the next application number, AppNO #2
For AppNo#2, we would select the EP Grant
APPNO Country Status Number
APP02 EP Grant 123545
Then I would move onto the next application number, AppNO #3
For AppNo#3, we would NOT select any country because it doesn't have the event grant or pub but the App# should be appear.
APPNO Country Status Number
APP03 US DES
APP03 EP DES
In the end the final result, should have at least one entry for each appno
APPNO Country Status Number
APP01 US Grant 966333
APP02 EP Grant 123545
APP03