I have a WHERE-clause in my SQL-query, and would like to add an argument depending on if the @Fran variable is set.
If @Fran is NULL, then it shouldn't filter the results at all. Otherwise, if @Fran is set, then it should add a WHERE clause "AND franid=@Fran". How could i do that?