zoukankan      html  css  js  c++  java
  • 操作数据库作业day34

    1. 查看岗位是teacher的员工姓名、年龄
    select name,age from employee where post='teacher'; 
    
    1. 查看岗位是teacher且年龄大于30岁的员工姓名、年龄
    select name,age from employee where post='teacher' and age>30; 
    
    1. 查看岗位是teacher且薪资在9000-1000范围内的员工姓名、年龄、薪资
    select name,age,salary from employee where post='teacher' and salary between 1000 and 9000; 	
    
    1. 查看岗位描述不为NULL的员工信息
    select * from employee where post is not null; 
    
    1. 查看岗位是teacher且薪资是10000或9000或30000的员工姓名、年龄、薪资
    select name,age,salary from employee where post='teacher' and salary=10000 or salary=9000 or salary=30000; 
    
    1. 查看岗位是teacher且薪资不是10000或9000或30000的员工姓名、年龄、薪资
    select name,age,salary from employee where post='teacher' and salary!=10000 and salary!=9000 and salary!=30000; 
    
    1. 查看岗位是teacher且名字是jin开头的员工姓名、年薪
    select name,salary*12 from employee where post='teacher' and name li'jin%';
    
  • 相关阅读:
    NOJ 1116 哈罗哈的大披萨 【淡蓝】 状态压缩DP
    优先队列原理与实现【转】
    testC-I
    济南NOIP冬令营 选拔(select)
    P4747 D’s problem(d)
    P4746 C’s problem(c)
    P4745 B’s problem(b)
    P4744 A’s problem(a)
    [bzoj] 1004: [HNOI2008]Cards
    NOIP2013 表达式求值
  • 原文地址:https://www.cnblogs.com/shin09/p/11761776.html
Copyright © 2011-2022 走看看