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 stored by the master? : sql server database administration

1180


What is NOT NULL Constraint in sql server 2012?

1046


How do I start and stop sql server?

1061


What is difference between foreign key and unique key?

1048


Differentiate between a primary key and a unique key.

1116


What is 1nf 2nf and 3nf?

957


What is named calculation? : sql server analysis services, ssas

1024


Where the sql logs gets stored? : sql server database administration

1014


Explain magic tables in sql server?

1103


what are the three command line utilities and what are their primary functions?

153


What happens if we shrink log file in sql server?

1031


How to find related tables in sql server?

1001


What is SubQuery in SQL Server 2008

1071


what is nonclustered index

1002


Which tcp/ip port does sql server run on? How can it be changed?

1081