Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Other SQL Server Topics (2005)
 How to check two queris return result is same

Author  Topic 

ssmani84
Starting Member

20 Posts

Posted - 2010-02-26 : 06:25:28
how to wrote storedprocedure for check two queries result and return one value

ssmaniyadav

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-02-26 : 11:49:16
select
blabla
from table
union
select
blabla
from another_table

will give distinct result from that two queries


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-27 : 00:33:16
if this is not what you intend, please post some sample data and show what you want

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -