Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is cached report?

146


Explain what you mean by 3 tier architecture.

1078


What do you mean by acid?

1007


List the different types of collation sensitivities in sql server?

1049


What is database replication?

1152


What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?

1030


Explain “row_number()” in sql server with an example?

1010


Difference between Logical Page and Physical Page in SSRS.

477


Why use “nolock” in sql server?

1064


What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?

137


Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?

128


What is openxml in sql server?

1181


Differentiate between delete and truncate.

1067


In what version of sql server were synonyms released?

946


When I delete any data from a table, does the sql server reduce the size of that table?

1025