I am trying to write some code but it doesn't work. It only those TypeT
description. How can I display the TypeT
and TypeS
condition for below case?
DECLARE @PaymentType VARCHAR(20) = '';
SELECT @PaymentType = LISTID
FROM LIST
WHERE LISTCONFIG IN ('TypeT', 'TypeS')
SELECT *
FROM LIST
WHERE LISTID IN (@PaymentType)