I have a little Problem. I want to execute that query:

```
WHERE (column1 = 'tetxt1'  and column2 = 'tetxt2' and column3 = 'tetxt3 ) 
OR (column2 = 'tetxt2' and column3 = 'tetxt3' ) 
OR (column1 = 'tetxt1' and column3 = 'tetxt3' ) 
OR (column1 = 'tetxt1' and column2 = 'tetxt2' ) 
OR ( column3 = 'tetxt3' ) 
OR ( column1 = 'tetxt1 ) 
OR ( column2 = 'tetxt2 )

```

In other words one of the where clause columns can be empty, but I need that the columns that have values will be queried with and. So, if I have just values for column1 and column2 but not for column3, then the two will be queried with and condition. I don’t think that would work : 

```
Where (column1 = 'tetxt1'  or column2 = 'tetxt2' or column3 = 'tetxt3')

```

and the first approach that I have given is not the best. Have you any Ideas how to improve the query?
Thank you a lot!