List Specific values on the top in the order by clause
List all the coutries from counties table order by CountryName, but if you need to have "United States" and "Germany" on the top of list.
select * from Countries Order by
CASE Name
WHEN 'United States' THEN 1
WHEN 'Germany' THEN 2
ELSE 100
END,
Name
Puneet Singla
Defend ASP.NET and WCF from various attacks using Nginx
-
ASP.NET websites and WCF services can be attacked in many ways to slow down
the service and even cause a complete outage. One can perform slowloirs
attack ...
8 years ago
No comments:
Post a Comment