on 12-09-2009 11:17 AM
Hi All,
Here is my requirement.
I need to select all address numbers from ADRC table based on building code.
For instance, say I want all address numbers where building code = ABC.
I can write a simple inner join query between ADRC & ADCP.
But the problem is, the ADRC table can have multiple address numbers. Say, for a specific Partner number & Person number, the ADRC table has following 3 entries. Lets say 3rd one is valid.
Addr 1 = XYZ'.
Addr2 = 'ABC'.
Addr3 = 'MNO'.
Now if I use that select query, it will fetch the second one, though it is the older one which is not valid anymore.
Is there any fields in ADRC with which we can decide which is the recent valid address number?
Kindly provide your valuable help for this scenario.
Have found out the way to get this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any fields in ADRC with which we can decide which is the recent valid address number?
Would DATE_FROM and DATE_TO fields help you with validity of the address?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.