Skip to content
Advertisement

How to transpose NULL value to 00:00

I have a view that gets data from an internet database. The view I created works, but when there is no data (NULL) I need it to return 00:00. How can I achieve this?

Using SSMS I am getting the starttime of booked resources. I already get them in the right way. But sometimes it returns NULL. I searched the internet and already tried to remedy this, but it won’t work.

I expect when the view returns NULL, that it returns 00:00 instead.

Advertisement

Answer

As stated in the comments you should use ISNULL function, like this:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement