I want to write one query
How to get Matched records and unmatched records in table?

Answer Posted / vimal

We can use minus query and intersect query

unmatched: records in a but not in b
select *
from a
minus
select *
from b ;

matched: recrods in a and in b
select *
from a
intersect
select *
from b ;

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a node?

610


if collect stats but it show low confidence why?

1179


While creating table my dba has fallback or no fallback in his ddl. What is that?

682


What are the different design perspectives used in teradata?

543


What are the steps involved in the process flow of the sql statement through channel attached system?

653






Which is faster fastload or multiload?

592


Define views in teradata with syntax.

633


What is the purpose of using case expression in teradata?

567


Explain teradata architecture in detail with a diagram.

604


What are the various etl tools in the market?

578


Explain teradata vs. Redshift?

548


any one answer me how they can analyzing the project using data ware housing?

2020


Backup Script was blocked then you are unable to archive the data. how do you analyze it and where do you identify ?

1493


What is bteq script in teradata?

627


How do you verify a complicated sql?

621