do yourself a favour, get rid of those unnecessary parentheses, so that the ones you actually need will stand out more
Code:
select tbl3.col1
, tbl3.col11
, tbl3.col2
, tbl3.col3
, tbl3.col4
, tbl3.col5
, tbl3.col6
, tbl3.col7
, tbl3.col8
, tbl3.col13
from tbl3
where tbl3.col13 = 1
and tbl3.col11 = colcheck
and (
tbl3.col2 like '%colname%'
or tbl3.col3 like '%colname%'
)
and tbl3.col6 like '%colcity%'
and tbl3.col7 like '%colstate%'
and (
tbl3.col4 like '%coladdress%'
or tbl3.col5 like '%coladdress%'
)
and tbl3.col8 like '%colzip%'
order
by tbl3.col2 asc
Bookmarks