Come interrogo il database chiedendo se è presente un dato oppure no?

La domanda è chiara?