CBSE Class 12 Informatics Practices Question 11 of 79

Database Query using SQL — Question 3

Back to all questions
3
Question

Question 3

If there are two tables emp and emp1, and both have common records, how can we fetch all the records but common records only once?

Answer
SELECT * FROM emp 
UNION 
SELECT * FROM emp1;