• Thanks for this solution.

    Is this possible i get old dated wan and new dated wan according to activation_date column.?

    Activation date of both wan compared then old dated wan set as old dated wan and latest one new dated wan.