http://www.sql.ru/forum/1124711/kak-s-pomoshhu-polya-tipa-flazhok-mozhno-rabotat-s-dannymi-otlichnymi-ot-boolean