I have a three tables
table 1 – key columns p1, p2
table 2 – key columns p1, STATUS
table 3 – key columns p2, STATUS
In table 1, if p1 is 0, then p2 will have value. but not the vice versa.
If p1 is there, then I need to check status in table 2, if not I need to check the status in table 3.
Now I need select find count of rows which are having pending status in any of table 2 and 3 from table 1.
Please help. thanks in advance
1 Answer