adspace


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 a coalesce function?

1282


What is an indexed view?

1021


What is standby servers? Explain types of standby servers.

1078


what is the Ticketing tool used in Wipro technologies at Bangalore...???

8227


do you know how to configure db2 side of the application? : Sql server database administration

1123


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

1078


How can we solve concurrency problems?

1121


How do I find the sql server version?

1101


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1196


what is the difference between openrowset and openquery?

1193


What is a view in sql?

1039


How efficient you are in oracle and SQL server?

1255


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2293


How to convert numeric expression data types using the cast() function?

1147


What is acid mean in sql server?

1244