- View job is teacher of the employee's name, age
select name,age from employee where post='teacher';
- View job is older than 30-year-old teacher and employee name, age
select name,age from employee where post='teacher' and age>30;
- View job is teacher and staff salaries in the 9000-1000 range name, age, salary
select name,age,salary from employee where post='teacher' and salary between 1000 and 9000;
- View job description is not NULL employee information
select * from employee where post is not null;
- View job is teacher salaries and employee name is 9000 or 10,000 or 30,000, age, salary
select name,age,salary from employee where post='teacher' and salary=10000 or salary=9000 or salary=30000;
- View job is teacher salaries and employee name is not 9000 or 10000 or 30000, age, salary
select name,age,salary from employee where post='teacher' and salary!=10000 and salary!=9000 and salary!=30000;
- View job is teacher and employee name jin name is the beginning of the annual salary
select name,salary*12 from employee where post='teacher' and name li'jin%';