• J Livingston's query runs faster. Both solutions work well.

    Sorry for the late reply but it really helped me in crunch.