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

What is change tracking in sql server?

983


How efficient you are in oracle and SQL server?

1130


What is the function of sql server agent windows service?

1068


What is use of attribute hierarchy optimized state? : sql server analysis services, ssas

1047


What is a virtual table in sql?

977


What is difference between count (*) and count 1?

913


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

864


What is the use of set nocount on/off statement?

1075


Explain the phases a transaction has to undergo?

1032


What Are the Main Features of SQL Azure?

115


What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?

887


List the various tools available for performance tuning?

874


how to control the amount of free space in your index pages? : Sql server database administration

1020


Explain can you implement data mining in ssrs?

158


Would you store your query in a ssrs report or a database server? State the reason why?

152