SyntaxFix
Write A Post
Hire A Developer
Questions
You can use a CASE statement.
CASE
SELECT CASE WHEN currate.currentrate IS NULL THEN 1 ELSE currate.currentrate END FROM ...