select *
from suMain
where trackingMonth = '2018-07'
and shopID = '421'
and productName like '%a'
and productName like '%x'
order by productName
This query is not working for me. Can anyone help, please?
select *
from suMain
where trackingMonth = '2018-07'
and shopID = '421'
and productName like '%a'
and productName like '%x'
order by productName
This query is not working for me. Can anyone help, please?
Try following:
select *
from suMain
where trackingMonth = '2018-07'
and shopID = '421'
and (productName like '%a'
or productName like '%x')
order by productName
Let me know if it works for you.