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 @ 2025-11-17 17:10  techNote  阅读(3)  评论(0)    收藏  举报