troubleshooting Question

SQL Query

Avatar of mburk1968
mburk1968Flag for United States of America asked on
Microsoft SQL Server 2005
2 Comments1 Solution279 ViewsLast Modified:
I have the following code in SQL Procedure
CONVERT(MONEY, ISNULL(CededFile.ExpPaid, 0)) AS [Expense Paid Ceded]

What I want from this field is still be converted to money however if
ClaimNo = 4-08-0011A then Expense Paid Ceded = 755.10 else Expense Paid Ceded
or
ClaimNo = 4-08-0016A then Expense Paid Ceded = 2835.36 else Expense Paid Ceded or
or
ClaimNo = 4-09-0003A then Expense Paid Ceded = 9042.10 else Expense Paid Ceded or
or
ClaimNo = 4-8-0001A then Expense Paid Ceded = 2296.60 else Expense Paid Ceded or
or
ClaimNo = 4-7-0014 then Expense Paid Ceded = 0.00 else Expense Paid Ceded
ASKER CERTIFIED SOLUTION
knightEknight

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros