potresti per esempio:

Select * from tabella Where 1=1

if nome >>>> then

AND nome = 'pippo'

if cognome>>>> then

AND cognome ='pluto'

etc...