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

Display a day of week in text in postgresql

This query displays count Actions grouped by day of the week. select count(*) c, date_part('dow', "updatedAt" at time zone 'Europe/Paris') dow from "Action" date_part('dow', "updatedAt" at time zone 'Europe/Paris') Days are displayed as number. Is there a way to display…

VIEW QUESTION
Back To Top
Search