Sql server conditional where clause. This stored procedure takes in three parameters.

Sql server conditional where clause. this code is NOT SAFE .