Replace all the OR's with an IN.SELECT u.HMY, ut.sdesc, u.SRENT, u.dtAvailable, p.saddr1, u.scodeFROM [clv].[dbo].[UNIT] AS uinner join clv.dbo.PROPERTY AS p on p.hmy = u.hpropertyinner join clv.dbo.UNITTYPE AS ut on ut.hmy = u.hunittypeWHERE p.saddr1 = #session.saddr1# -- Replace this value with a stored procedure parameterand u.hunittype IN ('2', '3', '4', '5', '6', '7', '8', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '39', '41', '42', '44', '45', '46', '47', '48', '49', '50')
E 12°55'05.76"N 56°04'39.42"