SQL request correctly managed when NULL is used