I believe what I'm asking here is possible, but I haven't find a way yet :
Some cells in the result of my SQL SELECT-FROM-WHERE query are blank, and in DbVisualizer, (null)
is written inside. I'd like to display a blank cell instead.
I've already tried with CASE-WHEN and the NVL operator, but it won't let me replace it by a blank ''
, I'm forced to use some ' '
or 'message'
.
I know I could just delete these spaces or messages with Excel later, but I'd like to know if there is a way to do it directly with DbVisualizer, instead of this workaround.
EDIT: Here is what my request looks like :
SELECT *things*,
CASE WHEN
(SELECT COUNT(*) FROM table d2 WHERE *join-condition* AND *other condition*) = 1
THEN
(*sub-select query*)
ELSE
''
END
AS NAME,
*other things*
FROM table d1
WHERE *something*
Thanks a lot !