skip to Main Content

Filter full name postgresql

SELECT * FROM employee WHERE is_deleted != true AND (:lastname IS NULL OR lastname ILIKE '%'||lastname||'%' OR :firstname IS NULL OR firstname ILIKE '%'||:firstname||'%' OR :middlename IS NULL OR middlename ILIKE '%'||:middlename||'%'); I have a full name column and I…

VIEW QUESTION
Back To Top
Search