Prodigy Education Interview Question

Coding question: Write an SQL query to merge two tables and display data based on condition