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

In which format does an image save in SQL Server database ?

944


What are the characteristics of modern DBMS?

1029


What is the difference between sdf and mdf?

1230


What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?

908


What are the approximate numeric data types?

875


Describe how to use linked server?

931


How can you insert null values in a column while inserting the data?

1210


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

1064


How to delete an existing row with delete statements in ms sql server?

1017


What have included columns when we talk about sql server indexing?

988


What is sql azure database?

204


What is a transactions?

970


How to insert new line characters into strings?

932


How does a profiler work?

870


Do you know query execution plan?

1071