I have something like below table
create table #temp
(
Name varchar(50)
)
INSERT INTO #temp values ('Round 1')
INSERT INTO #temp values ('Round 2')
INSERT INTO #temp values ('Round 3')
if All three are present select Round 3, if Round 1 and Round 2 are present Select Round 2 if Only Round 1 is present select Round 1 else select 'No Round'
MAX(Name)
?ISNULL(MAX(Name),'No Round')
if the table is empty? - Panagiotis Kanavos'Round 10'
? - Larnu