pears.LeastDate
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Original SQL
CREATE FUNCTION "pears"."LeastDate"( /* Application Maintained Function / Procedure - DO NOT EDIT*/ IN "Date1" DATE,IN "Date2" DATE ) RETURNS DATE BEGIN SET "Date1" = "isnull"("Date1","Date2"); SET "Date2" = "isnull"("Date2","Date1"); IF "Date1" < "Date2" THEN RETURN("Date1") ELSE RETURN("Date2") END IF END