In T-SQL, you can do this:
SELECT ProductId, COALESCE(Price, 0) FROM Products
How do you do the same thing in Access SQL? I see examples for doing it with Nz in VBA, but I’m looking for the SQL equivalent.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Access supports the
Nzfunction and allows you to use it in a query. Note though thatNzis the same as the T-SQLISNULLfunction. It can not take an arbitrary number of parameters likeCOALESCEcan.