主查询和子查询的关系:
1.子查询是嵌入到主查询中的
2.子查询是辅助主查询的,要么是条件,要么是数据源
3.子查询是可以独立存在的语句,是一条完整的select语句
select * from students where age>(select avg(age) from students);
查找年龄最大,身高最高的人
select * from students where (age,height)=(select max(age),max(height) from students);