Clemens, Paul S, Abroży,

Thank you for taking the time to reply. I'll look at each of them and see what makes the most sense to me.

It's always good to ask the people here as there is a wealth of experience.

As suggestions popped in, I kept thinking go the unix competition which was to list all the ways to accomplish printing something out, there's always another to do it. I will learn here as well.

Many thanks to everybody,

Rob

On 16 May 2018, at 11:25, Clemens Ladisch wrote:

Rob Willett wrote:
select CASE
WHEN EXISTS (select 1 from blocked where email = '[email protected]') THEN (select action from blocked where email = '[email protected]')
    ELSE 'OK'
    END

SELECT action FROM blocked WHERE email = ?
UNION ALL
SELECT 'OK'
LIMIT 1;


Regards,
Clemens
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to