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

Incorrect Syntax

Status
Not open for further replies.
Sep 10, 2009
37
US
Could someone please tell me what I am doing wrong in the statement:

SUM(CASE WHEN paycode IN (1,2,3) THEN
(d.billunits*d.billrate/(d.payunits*d.payrate)) ELSE 0 END
 
You're closing your ) in the wrong place.

SUM(CASE WHEN paycode IN (1,2,3) THEN (d.billunits*d.billrate)/(d.payunits*d.payrate) ELSE 0 END)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top