Sorting SQL by first two characters of fields

后端 未结 5 441
一生所求
一生所求 2021-01-18 08:01

I\'m trying to sort some data by sales person initials, and the sales rep field is 3 chars long, and is Firstname, Lastname and Account type. So, Bob Smith would be BS* and

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 09:01

    What about this

    SELECT * FROM SalesTable WHERE SalesRepField LIKE 'BS_'
    

提交回复
热议问题