I have a SAMPLE_TABLE with a column BIZ_ID which should be unique when the column active is not equal to 0.
On an oracle database the index looks like this:
CREATE UNIQUE INDEX ACTIVE_ONLY_IDX ON SAMPLE_TABLE (CASE "ACTIVE" WHEN 0 THEN NULL ELSE "BIZ_ID" END );
How would this unique index look like on a h2 database?