(1)select * from table where name='D'UNION ALLselect * from table where name<>'D' (2)
SELECT CASE WHEN [name]='D' THEN 0 ELSE 1 END FLAG,* FROM TABLE order by flag asc