how to display employee names starting with a and then b in sql

前端 未结 12 1617
谎友^
谎友^ 2021-02-05 19:58

i want to display the employee names which having names start with a and b ,it should be like list will display employees with \'a\' as a first letter and then the \'b\' as a

12条回答
  •  执念已碎
    2021-02-05 20:38

    select name_last, name_first
    from employees
    where name_last like 'A%' or name_last like 'B%'
    order by name_last, name_first asc
    

提交回复
热议问题