I have the following table
CREATE TABLE "prm_project_service_product_and_services" ( "id" BIGSERIAL NOT NULL, "name" VARCHAR(60) NOT NULL, "note" VARCHAR(256) NOT NULL, "version" BIGINT DEFAULT NULL, "created_date" TIMESTAMP DEFAULT NULL, "created_by_id" BIGINT DEFAULT NULL, "last_modified_date" TIMESTAMP DEFAULT NULL, "last_modified_by_id" BIGINT DEFAULT NULL, "deleted" BOOLEAN NOT NULL DEFAULT FALSE, PRIMARY KEY ("id"), CONSTRAINT project_service_product_and_services_unique UNIQUE ("name") ); I want to make name unique only when deleted is false, is this possible ?