CR 10
SQL Server 2000
Oy!
I have seen several posts regrading how to code multiple parameters on this forum. Is there a best practice that most people agree on?
versus
Also does the best practice change with field data types?
thanks,
.bat man
SQL Server 2000
Oy!
I have seen several posts regrading how to code multiple parameters on this forum. Is there a best practice that most people agree on?
Code:
(
{?param1} = {table.name1} or
{?param1} = "All"
) and
(
{?param2} = {table.name2} or
{?param2} = "All"
)
versus
Code:
(
if {?param1} = "All"
then TRUE
else if {?param1} <> "All"
then {?param1} = {table.name1}
) and
(
if {?param2} = "All"
then TRUE
else if {?param2} <> "All"
then {?param2} = {table.name2}
)
Also does the best practice change with field data types?
thanks,
.bat man