![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
for statistics i need to select the number of orders per 10 minutes. So i want to do something like SELECT TRUNC(insert_date, '??'), COUNT(*) FROM orders .... ; But within the trunc-(or other data-based) function allowed Patterns are "HH" or "MI". as workaround i use: SELECT TRUNC(insert_date,'HH') + TRUNC(TO_CHAR(ord_close_dt,'MI'),-1)/(60*24), COUNT(*) FROM orders .... ; Is there an easyer way to do the select? Thanks Gerhard |
#3
| |||
| |||
|
|
for statistics i need to select the number of orders per 10 minutes. So i want to do something like SELECT TRUNC(insert_date, '??'), COUNT(*) FROM orders .... ; But within the trunc-(or other data-based) function allowed Patterns are "HH" or "MI". as workaround i use: SELECT TRUNC(insert_date,'HH') + TRUNC(TO_CHAR(ord_close_dt,'MI'),-1)/(60*24), COUNT(*) FROM orders .... ; Is there an easyer way to do the select? Thanks Gerhard |
#4
| |||
| |||
|
|
for statistics i need to select the number of orders per 10 minutes. So i want to do something like SELECT TRUNC(insert_date, '??'), COUNT(*) FROM orders .... ; But within the trunc-(or other data-based) function allowed Patterns are "HH" or "MI". as workaround i use: SELECT TRUNC(insert_date,'HH') + TRUNC(TO_CHAR(ord_close_dt,'MI'),-1)/(60*24), COUNT(*) FROM orders .... ; Is there an easyer way to do the select? Thanks Gerhard |
#5
| |||
| |||
|
|
for statistics i need to select the number of orders per 10 minutes. So i want to do something like SELECT TRUNC(insert_date, '??'), COUNT(*) FROM orders .... ; But within the trunc-(or other data-based) function allowed Patterns are "HH" or "MI". as workaround i use: SELECT TRUNC(insert_date,'HH') + TRUNC(TO_CHAR(ord_close_dt,'MI'),-1)/(60*24), COUNT(*) FROM orders .... ; Is there an easyer way to do the select? Thanks Gerhard |
![]() |
| Thread Tools | |
| Display Modes | |
| |