I'm having a doubt, I need to do a select where I need to show if a customer's registry is active or not, in the database it is treated as follows, there is an exit date field if the field is blank the registration is active now if the registration is completed I need to show that it is inactive. To do this SQL how can I use the DECODE function.