hi i have an sql statement that returns rows from a table in descending order, the column i am ordering by is requestStatus. the requestStatus can be 3 values pending, approved and rejected . i would like to alter the sql if possible to order by pending then approved and then rejected. my sql statement is below. i am using asp.net razor view engine. can anyone point me in the right direction ?
var dbCommand2 = "SELECT * FROM LeaveRequests WHERE email = @0 ORDER BY WHERE requestStatus DESC";
var rows1 = db.Query(dbCommand2, theUserName);