单项选择题
请查询出员工月薪不在20000到30000之间的员工明细()
A.select name,salary from worker where salary NOT BETWEEN 20000AND 30000
B.select name,salary from worker where salary< 20000AND salary>30000
C.A和D都能实现
D.select name,salary from worker where salary< 20000OR salary>30000
相关考题
-
单项选择题
公司员工表的出生地字段里有空值,如果需要查询出非空出生地的员工,以下查询语句正确的是()
A.select name,birth_city from worker where birth_city< >""
B.select name,birth_city from worker where birth_city IS NOT NULL
C.select name,birth_city from worker where birth_city!=""
D.select name,birth_city from worker where birth_city=NOT_NULL -
单项选择题
学校组织运动会比赛,需要从名单状态字段(正常,请假,无故不参加,退赛)中筛选出未参会的运动员姓名,请问如何实现()
A.select name from list where status< >"正常"
B.select name from list where status="请假,无故不参加,退赛"
C.select name from list where status!="正常"
D.A和C都正确 -
单项选择题
需要从公司的员工表中,查询出不属于公司中高层(title为manager和senior_manager)的人员名单,实现方法是()
A.select name from employees where title="manager",title="senior_manager")
B.select name from employees where title="manager"AND title="senior_manager"
C.select name from employees where NOT title="manager"&title="senior_manager"
D.select name from employees where title NOT IN ("manager","senior_manager")