March 8, 2010 at 9:10 am
thanks. it won't work.
The records are all associated with a UserID, all non 0 value.
When the input parameter is 0, all records should be pulled out.
When the input parameter is not 0, only the specific UserID records should be pulled out.
March 8, 2010 at 9:19 am
halifaxdal (3/8/2010)
thanks. it won't work.The records are all associated with a UserID, all non 0 value.
When the input parameter is 0, all records should be pulled out.
When the input parameter is not 0, only the specific UserID records should be pulled out.
try what Piotr gave you; that will give you all users if the @userid=0
OR one specific user if it is not.
Lowell
March 8, 2010 at 9:19 am
Lowell (3/8/2010)
halifaxdal (3/8/2010)
thanks. it won't work.The records are all associated with a UserID, all non 0 value.
When the input parameter is 0, all records should be pulled out.
When the input parameter is not 0, only the specific UserID records should be pulled out.
try what Piotr gave you; that will give you all users if the @userid=0
OR one specific user if it is not.
try it! you'll like it.
Lowell
March 8, 2010 at 9:22 am
try it! you'll like it.
Sorry guys, I was hoping to see some case when query and didn't even try it, my apologies for this, it does work.
Thank you lots.
March 8, 2010 at 10:24 pm
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply