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

Highlight the advantages of PPI(Partition Primary Index).

565


What do you mean by fastexport in teradata?

563


What are default access rights in teradata? What explicit right can be given to a user?

656


Highlight the differences between Primary Key and Primary Index.

625


What is bteq script in teradata?

640






How to write the query . eid enm doj dob i want to display the names who worked more than 25 years .

1287


if collect stats but it show low confidence why?

1194


What is logical data model?

645


What is dimensional modeling?

595


Highlight the need for Performance Tuning.

595


What are some commonly used bteq scripts?

569


In general, how do you optimze any sql in teradata?

555


What are the different table types supported by teradata?

537


What is upsert statement in teradata?

620


If RDBMS is halted what will you do ?

1712