查找某时间段:select * from 表名称 where 字段>'某数据'
删除某个时间时间段:delete from 表名称 where 字段名称+条件
去掉重复数据:select distinct 字段名称 from 表名称
删除空值:delete from 表名 where 字段名 is null
两张表合并展示(需要删除重复部分):union
两张表合并展示(不需要删除重复部分):union all
表1并入表2:insert into 表1 (字段1,字段2...)SELECT 字段1,字段2..from 表2
排序 order by
部分示例:
update HR_Employee
set Serial_no=RecID
from MJ_Record
where HR_Employee.AccountID=MJ_Record.AccountID