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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Case Statement

Status
Not open for further replies.

cschristian78

Technical User
Nov 3, 2004
23
0
0
US
Is it possible to have the follow?
(CASE when [AcctTIV] = 0 or case when [BLANLIMAMT] = 0
THEN 0
ELSE [StateTIV]/[AcctTIV]*[BLANLIMAMT]
END) AS ProRata

Or is this the only way?
(CASE when [AcctTIV] = 0 THEN
case when [BLANLIMAMT] = 0
THEN 0
ELSE [StateTIV]/[AcctTIV]*[BLANLIMAMT]
END
ELSE [StateTIV]/[AcctTIV]*[BLANLIMAMT]
END) AS ProRata

Thanks,
Scott
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top