I have a table with an id field and name field:
I want to make a query where I get this result by Alphabetical order on Last Name:
Is there anyway I can do this in SQL. I think I need to split the name field between the first name and last name using space as a delimeter and then sorting the last name.
Please advise how I can do this?
Code:
ID Name
1 Mark Rivers
2 Jack Jones
3 Rich Thompson
4 Steve Accorn
I want to make a query where I get this result by Alphabetical order on Last Name:
Code:
Steve Accorn
Jack Jones
Mark Rivers
Rick Thompson
Is there anyway I can do this in SQL. I think I need to split the name field between the first name and last name using space as a delimeter and then sorting the last name.
Please advise how I can do this?