Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with stored procedure

Status
Not open for further replies.

nc297

Programmer
Apr 7, 2010
162
US
How do I add this line to the below statement?

and cossn is null from table t16pendmvt

I want to check to make sure the cossn in the table t16pendall is not in the table t16pendmvt



select t.fo, Isnull(COUNT(t.cossn), 0)AS PendinFO1


FROM t16pendall t

left join t16pendmvt m

on t.cossn = m.cossn

where mft_POSN1_CD in('b','d') or (MFT_POSN1_CD='a' and aged_alien_rsw='y')

GROUP BY t.fo

order by t.fo
 
Okay getting things together and will post in a new thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top