1,select查询详解


->select查询详解***********
select distinct\top ... --(5)投影
from -- (1)找到表
where -- (2)过滤掉我们不需要的数据
group by --(3)分组操作
having --(4)对分组后的数据进行过滤。
order by --(6)排序操作
->union:去重 union all:不去重
->datediff(month,startdate,enddate)**********
->join:内连接*******

posted @ 2020-06-14 17:45  进一步海阔天空  阅读(118)  评论(0编辑  收藏  举报