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 / asharaf ali

(SELECT * FROM @T1
EXCEPT
SELECT * FROM @T2)
UNION
(SELECT * FROM @T2
EXCEPT
SELECT * FROM @T1)

If the above query returned no records, the data in both table are same.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Insert multiple rows with a single insert statement?

999


What is difference between equi join and inner join?

857


How many types of built in functions are there in sql server 2012?

873


Explain about Normalization?

1011


What are unicode character string data types in ms sql server?

1141


What is dml command?

886


What is difference between equi join and natural join?

963


Can I disable or restrict ssrs export formats (rendering formats)?

140


What Is Rdbms?

1082


Which are the third-party tools used in sql server and why would you use them?

843


What are data regions?

119


How many null values we can have in a unique key field in sql server?

902


Do you know sql server 2008 backup compression?

919


What happens if null values are involved in arithmetic operations?

961


What is delete query?

895