Home Forums SQL Server 2008 T-SQL (SS2K8) Query -- Help RE: Query -- Help
onlygoodones
SSC Eights!
Points: 870
More actions
December 17, 2013 at 10:32 am
#1674171
-- Not sure what the Business requirement is but for you to get the output as TRUE, use this:
DECLARE @req_1 varchar(50)
DECLARE @req_2 varchar(50)
set @req_1='AAM'
set @req_2='VVE'
if (@req_1 ='AAM' OR @req_2 ='VVE')
print 'TRUE'
ELSE
print 'FALSE'