zoukankan      html  css  js  c++  java
  • 课后作业 day34

    作业:

    1. 查看岗位是teacher的员工姓名、年龄  
    	select name,age from staff_t where station = 'teacher';
    
    2. 查看岗位是teacher且年龄大于30岁的员工姓名、年龄   
    	select name,age from staff_t where station = 'teacher' and age > 30;
    
    3. 查看岗位是teacher且薪资在9000-1000范围内的员工姓名、年龄、薪资   
    	select name,age,salary from staff_t where station = 'teacher' 
        	and salary between 9000 and 10000;
    
    4. 查看岗位描述不为NULL的员工信息   
    	select * from staff_t where staff_msg is not null;
    
    5. 查看岗位是teacher且薪资是10000或9000或30000的员工姓名、年龄、薪资 
    	select name,age,salary from staff_t where salary in (10000,9000,30000);
    
    6. 查看岗位是teacher且薪资不是10000或9000或30000的员工姓名、年龄、薪资 
    	select name,age,salary from staff_t where salary not in (10000,9000,30000);
    
    7. 查看岗位是teacher且名字是jin开头的员工姓名、年薪
    	select name,salary from staff_t where station = 'teacher' and name like 'jin%';
    
  • 相关阅读:
    NOIP模拟测试7
    BigInt类
    bzoj 2733 [HNOI2012]永无乡 并查集+平衡树
    bzoj 2752 [HAOI2012]高速公路(road) 线段树
    bzoj 1584 Cleaning Up 打扫卫生 dp
    201709 半集训
    [SHOI2014]概率充电器 dp
    NOIP2016 天天爱跑步
    [HNOI2011] 数学作业
    [Poi2012]Festival
  • 原文地址:https://www.cnblogs.com/samoo/p/11761463.html
Copyright © 2011-2022 走看看