Jorge O. Martinez writes: > ... > I've been banging my head over this relatively simple query, ... > select company_name,ticker,primary_exchange > from > company_index > <dtml-sqlgroup where> > <dtml-sqltest ticker op=eq type=nb> You may need the "optional" attribute to "dtml-sqltest" ( maybe in addition to give "ticker" an empty default value). Dieter