建立新表:用as关键字+select语句
create table temp_cup as
select to_char(SAMPLE_TIMESTAMP_UTC,'yyyy/mm/dd hh24:mi') a,avg(PARAMETER_VALUE) val from SANDBOXUSER.BMC_CPU
where to_char(SAMPLE_TIMESTAMP_UTC,'yyyy/mm/dd hh24:mi') BETWEEN TO_CHAR ( SYSDATE - 10, 'yyyy/mm/dd hh24:mi' )
AND TO_CHAR ( SYSDATE - 9, 'yyyy/mm/dd hh24:mi' )
group by to_char(SAMPLE_TIMESTAMP_UTC,'yyyy/mm/dd hh24:mi') order by to_char(SAMPLE_TIMESTAMP_UTC,'yyyy/mm/dd hh24:mi')