I am new to this. Someone please help.
I am creating stored procedures that queries the tables to pull certain information together in a listing (report). I would like to be able to print to the user "No records found", if no records were found based on the search criteria. I can able to query the information, but can't get the "No records found" to print. The listing just comes back with no records.
Is there a canned syntax/statement to make this happen and should it be placed before or after the select statement?
Is there some sort of end of file checking that needs to happen?