Nested Query for newbie?
From: PM (anonymous_at_discussions.microsoft.com)
Date: 05/14/04
- Next message: Steve Kass: "Re: Case Senstivity on SQL Server"
- Previous message: Hari: "Re: DB name changes daily"
- Next in thread: Steve Kass: "Re: Nested Query for newbie?"
- Reply: Steve Kass: "Re: Nested Query for newbie?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 May 2004 08:58:59 -0700
Hi
thanks for reading
I have 2 tables. The first has employee information and
the second has
payroll information. I need to find out people who are not
in the
payroll but in the employee table.
Since the payroll has multiple instances i have to filter
it and find
out for each payroll.
I don't think i have explained it very well so here is the
data set.
hope someone can help me with this.
Thanks in advance
prit
Tbl Employee
PlanID SSN
1001 111111111
1001 222222222
1001 333333333
TblPayrolldetail
IDNum PlanID SSN
1 1001 111111111
1 1001 222222222
2 1001 222222222
2 1001 333333333
Required RESULT required(Missing employees for each pay
period)
IDNum SSN
1 333333333
2 111111111
- Next message: Steve Kass: "Re: Case Senstivity on SQL Server"
- Previous message: Hari: "Re: DB name changes daily"
- Next in thread: Steve Kass: "Re: Nested Query for newbie?"
- Reply: Steve Kass: "Re: Nested Query for newbie?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|