oracle中怎样以年为参数求出每个月数据的平均值以及月的最大值最小值
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle中怎样以年为参数求出每个月数据的平均值以及月的最大值最小值相关的知识,希望对你有一定的参考价值。
参考技术A select month_no,avg(value) vag_value,max(value) max_value,min(value) min_value from table_name where substr(month_no,1,4)='year' group by month_noyear是年参数,month_no是月份参数,varchar2型,如果是时间类型,比如load_timeselect to_char(load_time,'yyyymm') month_no,avg(value) vag_value,max(value) max_value,min(value) min_value from table_name where to_char(load_time,'yyyy') ='year' group by to_char(load_time,'yyyymm')本回答被提问者采纳
给定出生日期的年龄(以年为单位)
Given a birthdate in @dob, here are two simple formulae for age in years :(the second formulae is for age in years to two decimal places, ignoring day of month)
#1 #2
以上是关于oracle中怎样以年为参数求出每个月数据的平均值以及月的最大值最小值的主要内容,如果未能解决你的问题,请参考以下文章