I'm doing the specification for an application that has to search a table with different conditions in the WHERE clause.
For example (not an actual table):
type 1
select name from employees where active = true;
or type 2
select name from employees where idBoss = 3;
I would rather create one stored procedure with a parameter "type" than create two stored procedures with the same code and different "where" clauses.
Is this possible?
Note: I have 2 programmers; one knows only Informix, one knows only .NET. To minimize problems, I'm doing all the calls to the database with stored procedures so the db programmer and the .net programmer don't have to need each other.