Thank you for such a quick answer.
You are absolutely right, I didn't gave you exact query, in which where clause is quite a bit more complex then the one I posted.
I've already seen the link you've posted, but something bothered me, it looks like you have to name one column as first parameter, and I can not provide it, because key column is not of any importance to the query I intend to execute.
I would be grateful if you could provide me with code sample for the problem I described in first post.
Cheers,
V