I have a setup where I am accessing Oracle 8i data from CGI scripts, to do a select which does not fail, i first do a select count(*) with a where condition and only if the count returned is greater than zero, I execute the select statement withe the same where condition. It works but I know that this is not the most efficient way of doing it. Any suggestions. Could someone tell me more about how to handle DB exceptions (No data found, too many rows fetched, zero divide etc)