Why doesn't this statement work? Select id from references where length(date) > 5 //date is a text field, id is a longint field Jon