简体   繁体   中英

SQL query to identify records using partition range

I have below query which is giving only for one partition that 17th October data. But I have to extract information between 17th Oct to 15th Nov. How can we achieve this. Your help is really appreciated.

SELECT
 /*+ parallel(c,10)*/
 error_code,
 cdr_source_id,
 FROM error_event partition(day_20171017) c
 WHERE error_code ='220'
 ORDER BY error_date_time;

如果您打算在指定日期之间获取详细信息,则使用之间将有助于更轻松地获取详细信息

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM