SELECT ROW_NUMBER() OVER (ORDER BY Vendor_PrimaryInfo.Vendor_ID ASC) AS RowNumber, * FROM Unit_Table INNER JOIN Vendor_Base_Price ON Unit_Table.Unit
You can try this way..
WHERE Vendor_Registration.Category_ID = 5 AND Vendor_PrimaryInfo.City = 'City' AND (value_text in ('sample value') or (CASE WHEN (ISNUMERIC(value_text) = 1) THEN CAST(value_text AS INT) ELSE -1 END) BETWEEN 0 AND 100)