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
 Transact-SQL (2005)
 SQL join tables

Author  Topic 

satya068
Posting Yak Master

233 Posts

Posted - 2012-10-09 : 04:27:40
Hi,

I have writtend two individual scripts for getting the total num of records
USE RODGER
select count(*) from Action A
inner join Referral R on A.ReferralID = R.ReferralID
where R.EMP_CODE like 'N%' ----520

USE EMP
select count(*) from EMP_PND_WAG
where PND_ACTIONID = 6 --------522

I would like to know those 2 records which are the defference between the tables.

can i know find those 2 records by joining the two tables?

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2012-10-09 : 04:32:12
We don't know the relation between the tables so it is not possible to give a solution.


Too old to Rock'n'Roll too young to die.
Go to Top of Page
   

- Advertisement -