How to supply multiple values in between clause after where clause

前端 未结 1 588
感动是毒
感动是毒 2021-01-24 10:43
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         


        
相关标签:
1条回答
  • 2021-01-24 11:41

    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)
    
    0 讨论(0)
提交回复
热议问题