I am using MySQL and here is a simple query set:
MySQL
create table dcheck ( fdate date, sdate date, check (fdate <= sdate) ); insert
CHECK constraints are now supported since MySQL 8.0.16