Hi,
I have a scenario where Entity A need to me linked to Entity B and it is one to many relationship. i.e one record in Entity A can have a relationship with n records in Entity B.
But I want to retrieve records from Entity B based on priority.
I want to retrieve A to B with B age as 20, if I don't find 20 I'll go with 30 and so on.
| |
Entity B |
|
| Key |
Name |
Age |
| A1 |
X |
20 |
| A1 |
Y |
30 |
| A1 |
Z |
40 |
| A2 |
L |
30 |
| A2 |
M |
40 |
From the above tables I want
A1-X
A2-L
*This post is locked for comments
I have the same question (0)