I'm using ORACLE SQL Developer.
I am trying to order by last name. If I have matching last names then I want to order by first name.
here is my code:
....
order by case
when student_lname= student_lname
then student_fname
else student_lname
end;
but it doesn't return the result I want.
Thanks
只需按以下order by
使用两个键:
order by student_lname, student_fname
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.