sql database subgroup of database, 4 assertions