use merge not where with joins