I am Having tables T1 and T2 both having same data how to
check (or) compare the data in both table are same?

Answer Posted / thakur singh rawat

(select * from T1
minus
select * from T2)
union
(select * from T2
minus
select * from T1)

If no rows returns then it means that the two tables
contain the same values or say same.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many clustered indexes can be created on a table? : Sql server database administration

561


What do you mean by data manipulation language?

583


Define Business Edition in SQL Azure?

88


What does it mean to manipulate data?

556


Does table partitioning improve performance?

530






Will count(column) include columns with null values in its count?

664


What is the use of nvl work?

561


Do you know what are the differences between lost updates and uncommitted dependencies?

535


Explain user defined functions?

611


How to skip remaining statements in a loop block using continue statements?

539


 Explain what is sql override for a source taLle in a mapping?

569


What are the restraints imposed on the table design by a merge replication?

562


What does Master database contains?

624


What are .mdf files?

518


What are the dis_advantages of stored procedures, triggers, indexes?

1681