Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

How to set the Flag for Only one Record

$
0
0
Hi,I have a requirement where I have to check for records and if Record is present for both the values, then Flag is 0 and if it is present for only one value then flag is 1.For ExampleID Value1 'Season16'2 'Season16'2 'Season15'3 'Season15'3 'Season15'4 'Season16'Now I want,ID Flag1 12 03 04 1I.e. If ID has both Season16 and Season 15 then Flag is 0 else 1.Can you guys pour in your thoughts?

Viewing all articles
Browse latest Browse all 3145

Trending Articles