I have a table with candidate details which insert base64 image as the profile picture. When I getting huge number of candidate list from the table the profile picture is taking too much space. I have a default base64 image as profile pic for those doesn't upload profile pics. What I want is take null if the profile picture is DEFAULT for the candidate. My Query is something simple like this,
select
Name,
DOB,
case when profilepic is default then NULL else profile pic
from candidates
The code is showing error for using default but works fine when I use null in place of DEFAULT
IS DEFAULT
isn't valid syntax. What are you actually trying to achieve here?CASE
expression is missing anEND
.CONSTRAINT
in thesys
objects, see if the value matches, and then returnNULL
instead.