Hi,
I have a parameter called @Type. This parameter can have different values, like 'STOP', 'START', etc.
Based on this value I have to built different where clauses
LIKE when 'STOP' I have to set: "WHERE STATUS = 0", while when it's 'START' I have to set: "WHERE CHECKED_OUT = 0"
What is the best way to solve this problem?
Thanks in advance,
G.I.
I have a parameter called @Type. This parameter can have different values, like 'STOP', 'START', etc.
Based on this value I have to built different where clauses
LIKE when 'STOP' I have to set: "WHERE STATUS = 0", while when it's 'START' I have to set: "WHERE CHECKED_OUT = 0"
What is the best way to solve this problem?
Thanks in advance,
G.I.