sql - alternate for IN operator -
i have below query question alternate way use in
clause in where
clause, taking lot of time pull records. there 1000 records in table need 64 records few of them in clause below. query effecting performance.
select distinct t6.name ord_job_code t6 t6.name in ('g23.08', 'g10.01', 'g10.02', 'g10.03', 'g10.04', 'g10.05', 'g10.06', 'g10.07', 'g10.08','g10.09', 'g8.01','g8.02','g8.03','g8.04')
please me in solving performance issue.
Comments
Post a Comment