create table #tbl(Name varchar(10)) Insert into #tbl values('A') Insert into #tbl values('B') Insert into #tbl values('C') Insert into #tbl values('D') SELECT Name FROM #tbl ORDER BY CASE WHEN Name='B' THEN 1 ELSE 0 END Drop table #tbl
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)