SlideShare a Scribd company logo
1 of 8
Download to read offline
DURATION
www.infiniflux.com
Table of Contents
DURATION Concept
DURATION Basic
DURATION BEFORE
DURATION FROM/TO
DURATION AFTER
1
2
3
4
5
DURATION Demo6
DURATION Concept
3
RDBMS
• Simplicity comparison of SQL query to search data for the last 10 minutes starting from the current time.
DURATION is the keyword that allows to specify the time range in the SELECT statement easily.
Improve SELECT performance significantly by narrowing down the physical access scope.
DURATION is based on internal hidden column, “_arrival_time”, which is automatically created.
데이터의 실시간 저장DURATION Time_Expression [ BEFORE|AFTER Time_Expression | TO_DATE(TIME)];
Time_Expression : all | year | month | day | hour | minute | second
SELECT * FROM t1 WHERE start_time > TO_DATE(‘2015-08-
01 20:50:00’, ‘YYYY-MM-DD HH24:MI:SS’);
InfiniFlux
SELECT * FROM t1 DURATION 10 minute;
DURATION Basic
4
Past
10 minute data
Scan direction
Now(Now – 10 minutes)
: Search and output data for the last 10 minutes of the current time in reverse order.
Search data within a specified time period based on the current time in reverse order.
SELECT * FROM t1 DURATION 10 minute;
DURATION BEFORE
5
Past Now(now – 1 hour)(now – 1 hour – 10 minute)
Scan direction
Past Now2015-05-12 15:00:002015-05-12 14:50:00
Scan direction
: Search and output data for the 10 minutes, 1 hour before the current time in reverse order.
: Search and output data for the 10 minutes before 15:00 on May 12, 2015 in reverse order.
BEFORE searches and outputs data starting from the current to the past time in reverse order, and also
is used for specifying relative or absolute starting point.
SELECT * FROM t1 DURATION 10 minute BEFORE 1 hour;
10 minute data 1 hour
SELECT * FROM t1 DURATION 10 minute BEFORE TO_DATE(‘2015-05-12 15:00:00’, ‘YYYY-MM-DD HH24:MI:SS’);
10 minute data Time gap
DURATION AFTER
6
Past Now2015-05-12 15:00:00
Scan direction
Past Now2015-05-12 15:10:002015-05-12 15:00:00
Scan direction
: Search and output all the data from 15:00 on May 12, 2015 to the current time.
AFTER searches and outputs data from the past to the current time.
: Search and output data for the 10 minutes after 15:00 on May 12, 2015.
SELECT * FROM t1 DURATION 10 minute AFTER TO_DATE(‘2015-05-12 15:00:00’, ’YYYY-MM-DD HH24:MI:SS’);
10 minute data Time gap
SELECT * FROM t1 DURATION ALL AFTER TO_DATE(‘2015-05-12 15:00:00’, ‘YYYY-MM-DD HH24:MI:SS’);
10 minute data
Output all the input data from the past to the current time;
SELECT * FROM t1 DURATION ALL AFTER TO_DATE(‘1970-01-01 09:00:00’, ‘YYYY-MM-DD HH24:MI:SS’);
DURATION FROM/TO
7
Past Now
Scan direction
Past Now2015-05-12 00:00:002015-05-10 00:00:00
Scan direction
: Search and output data for the two days from May 12, 2015 to May 10, 2015 in reverse order.
: Search and output data for the two days from May 10, 2015 to May 12, 2015 in sequential order.
2015-05-12 00:00:002015-05-10 00:00:00
FROM/TO search and output data based on the scope between the two specified times.
The direction of scan will be changed depend on the time value of the specified times as shown below.
SELECT * FROM t1 DURATION FROM TO_DATE(‘2015-05-12’, ‘YYYY-MM-DD’) TO TO_DATE(‘2015-05-10’, ‘YYYY-MM-DD’);
2 day data Time gap
SELECT * FROM t1 DURATION FROM TO_DATE(‘2015-05-10’, ‘YYYY-MM-DD’) TO TO_DATE(‘2015-05-12’, ‘YYYY-MM-DD’);
2 day data Time gap
The World's Fastest
Time Series DBMS
for IoT and Big Data
www.infiniflux.com
info@infiniflux.com
InfiniFlux

More Related Content

Viewers also liked

InfiniFlux performance
InfiniFlux performanceInfiniFlux performance
InfiniFlux performanceInfiniFlux
 
InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2
InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2
InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2Andrew Sungjin Kim
 
InfiniFlux Time Series DBMS FAQ
InfiniFlux Time Series DBMS FAQInfiniFlux Time Series DBMS FAQ
InfiniFlux Time Series DBMS FAQInfiniFlux
 
IniniFlux Feature_Perf_Comparison
IniniFlux Feature_Perf_ComparisonIniniFlux Feature_Perf_Comparison
IniniFlux Feature_Perf_ComparisonInfiniFlux
 
InfiniFlux Backup
InfiniFlux BackupInfiniFlux Backup
InfiniFlux BackupInfiniFlux
 
InfiniFlux vs_RDBMS
InfiniFlux vs_RDBMSInfiniFlux vs_RDBMS
InfiniFlux vs_RDBMSInfiniFlux
 
InfiniFlux Feature perf comp_v1
InfiniFlux Feature perf comp_v1InfiniFlux Feature perf comp_v1
InfiniFlux Feature perf comp_v1InfiniFlux
 

Viewers also liked (7)

InfiniFlux performance
InfiniFlux performanceInfiniFlux performance
InfiniFlux performance
 
InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2
InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2
InfiniFlux vs influxdb 비교 테스트 결과 2016 12월-v2
 
InfiniFlux Time Series DBMS FAQ
InfiniFlux Time Series DBMS FAQInfiniFlux Time Series DBMS FAQ
InfiniFlux Time Series DBMS FAQ
 
IniniFlux Feature_Perf_Comparison
IniniFlux Feature_Perf_ComparisonIniniFlux Feature_Perf_Comparison
IniniFlux Feature_Perf_Comparison
 
InfiniFlux Backup
InfiniFlux BackupInfiniFlux Backup
InfiniFlux Backup
 
InfiniFlux vs_RDBMS
InfiniFlux vs_RDBMSInfiniFlux vs_RDBMS
InfiniFlux vs_RDBMS
 
InfiniFlux Feature perf comp_v1
InfiniFlux Feature perf comp_v1InfiniFlux Feature perf comp_v1
InfiniFlux Feature perf comp_v1
 

Similar to InfiniFlux duration

A time Travel with temporal tables
A time Travel with temporal tablesA time Travel with temporal tables
A time Travel with temporal tablesLeonel Abreu
 
Data Wrangling: Working with Date / Time Data and Visualizing It
Data Wrangling: Working with Date / Time Data and Visualizing ItData Wrangling: Working with Date / Time Data and Visualizing It
Data Wrangling: Working with Date / Time Data and Visualizing Itkanaugust
 
[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch Tables
[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch Tables[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch Tables
[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch TablesGUSS
 
INFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPTINFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPTInfluxData
 
SQL Server Temporal Tables
SQL Server Temporal TablesSQL Server Temporal Tables
SQL Server Temporal TablesGreg McMurray
 
Temporal
TemporalTemporal
Temporalsunsie
 
Splunk Ninjas: New Features and Search Dojo
Splunk Ninjas: New Features and Search DojoSplunk Ninjas: New Features and Search Dojo
Splunk Ninjas: New Features and Search DojoSplunk
 
Topic 5 Production Sequencing and Scheduling.ppt
Topic 5 Production Sequencing and Scheduling.pptTopic 5 Production Sequencing and Scheduling.ppt
Topic 5 Production Sequencing and Scheduling.pptHassanHani5
 
Back to the future - Temporal Table in SQL Server 2016
Back to the future - Temporal Table in SQL Server 2016Back to the future - Temporal Table in SQL Server 2016
Back to the future - Temporal Table in SQL Server 2016Stéphane Fréchette
 
Managing productions across Supply Chain
Managing productions across Supply ChainManaging productions across Supply Chain
Managing productions across Supply ChainSushovan Bej
 
Oracle 12c SQL: Date Ranges
Oracle 12c SQL: Date RangesOracle 12c SQL: Date Ranges
Oracle 12c SQL: Date RangesStew Ashton
 
Managing production across supply chain
Managing production across supply chainManaging production across supply chain
Managing production across supply chainSushant Kumar Sinha
 
Teradata Tutorial for Beginners
Teradata Tutorial for BeginnersTeradata Tutorial for Beginners
Teradata Tutorial for Beginnersrajkamaltibacademy
 
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case StudyMongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case StudyMongoDB
 

Similar to InfiniFlux duration (20)

A time Travel with temporal tables
A time Travel with temporal tablesA time Travel with temporal tables
A time Travel with temporal tables
 
Data Wrangling: Working with Date / Time Data and Visualizing It
Data Wrangling: Working with Date / Time Data and Visualizing ItData Wrangling: Working with Date / Time Data and Visualizing It
Data Wrangling: Working with Date / Time Data and Visualizing It
 
[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch Tables
[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch Tables[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch Tables
[JSS2015] Nouveautés SQL Server 2016:Sécurité,Temporal & Stretch Tables
 
INFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPTINFLUXQL & TICKSCRIPT
INFLUXQL & TICKSCRIPT
 
SQL Server Temporal Tables
SQL Server Temporal TablesSQL Server Temporal Tables
SQL Server Temporal Tables
 
Temporal
TemporalTemporal
Temporal
 
Influxdb and time series data
Influxdb and time series dataInfluxdb and time series data
Influxdb and time series data
 
Splunk Ninjas: New Features and Search Dojo
Splunk Ninjas: New Features and Search DojoSplunk Ninjas: New Features and Search Dojo
Splunk Ninjas: New Features and Search Dojo
 
Topic 5 Production Sequencing and Scheduling.ppt
Topic 5 Production Sequencing and Scheduling.pptTopic 5 Production Sequencing and Scheduling.ppt
Topic 5 Production Sequencing and Scheduling.ppt
 
Back to the future - Temporal Table in SQL Server 2016
Back to the future - Temporal Table in SQL Server 2016Back to the future - Temporal Table in SQL Server 2016
Back to the future - Temporal Table in SQL Server 2016
 
Managing productions across Supply Chain
Managing productions across Supply ChainManaging productions across Supply Chain
Managing productions across Supply Chain
 
Oracle 12c SQL: Date Ranges
Oracle 12c SQL: Date RangesOracle 12c SQL: Date Ranges
Oracle 12c SQL: Date Ranges
 
Managing production across supply chain
Managing production across supply chainManaging production across supply chain
Managing production across supply chain
 
Scheduling
SchedulingScheduling
Scheduling
 
Scheduling
SchedulingScheduling
Scheduling
 
Scheduling
SchedulingScheduling
Scheduling
 
SQL Tuning 101
SQL Tuning 101SQL Tuning 101
SQL Tuning 101
 
sqltuning101-170419021007-2.pdf
sqltuning101-170419021007-2.pdfsqltuning101-170419021007-2.pdf
sqltuning101-170419021007-2.pdf
 
Teradata Tutorial for Beginners
Teradata Tutorial for BeginnersTeradata Tutorial for Beginners
Teradata Tutorial for Beginners
 
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case StudyMongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
MongoDB World 2018: Overnight to 60 Seconds: An IOT ETL Performance Case Study
 

Recently uploaded

Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 

Recently uploaded (20)

Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 

InfiniFlux duration

  • 2. Table of Contents DURATION Concept DURATION Basic DURATION BEFORE DURATION FROM/TO DURATION AFTER 1 2 3 4 5 DURATION Demo6
  • 3. DURATION Concept 3 RDBMS • Simplicity comparison of SQL query to search data for the last 10 minutes starting from the current time. DURATION is the keyword that allows to specify the time range in the SELECT statement easily. Improve SELECT performance significantly by narrowing down the physical access scope. DURATION is based on internal hidden column, “_arrival_time”, which is automatically created. 데이터의 실시간 저장DURATION Time_Expression [ BEFORE|AFTER Time_Expression | TO_DATE(TIME)]; Time_Expression : all | year | month | day | hour | minute | second SELECT * FROM t1 WHERE start_time > TO_DATE(‘2015-08- 01 20:50:00’, ‘YYYY-MM-DD HH24:MI:SS’); InfiniFlux SELECT * FROM t1 DURATION 10 minute;
  • 4. DURATION Basic 4 Past 10 minute data Scan direction Now(Now – 10 minutes) : Search and output data for the last 10 minutes of the current time in reverse order. Search data within a specified time period based on the current time in reverse order. SELECT * FROM t1 DURATION 10 minute;
  • 5. DURATION BEFORE 5 Past Now(now – 1 hour)(now – 1 hour – 10 minute) Scan direction Past Now2015-05-12 15:00:002015-05-12 14:50:00 Scan direction : Search and output data for the 10 minutes, 1 hour before the current time in reverse order. : Search and output data for the 10 minutes before 15:00 on May 12, 2015 in reverse order. BEFORE searches and outputs data starting from the current to the past time in reverse order, and also is used for specifying relative or absolute starting point. SELECT * FROM t1 DURATION 10 minute BEFORE 1 hour; 10 minute data 1 hour SELECT * FROM t1 DURATION 10 minute BEFORE TO_DATE(‘2015-05-12 15:00:00’, ‘YYYY-MM-DD HH24:MI:SS’); 10 minute data Time gap
  • 6. DURATION AFTER 6 Past Now2015-05-12 15:00:00 Scan direction Past Now2015-05-12 15:10:002015-05-12 15:00:00 Scan direction : Search and output all the data from 15:00 on May 12, 2015 to the current time. AFTER searches and outputs data from the past to the current time. : Search and output data for the 10 minutes after 15:00 on May 12, 2015. SELECT * FROM t1 DURATION 10 minute AFTER TO_DATE(‘2015-05-12 15:00:00’, ’YYYY-MM-DD HH24:MI:SS’); 10 minute data Time gap SELECT * FROM t1 DURATION ALL AFTER TO_DATE(‘2015-05-12 15:00:00’, ‘YYYY-MM-DD HH24:MI:SS’); 10 minute data Output all the input data from the past to the current time; SELECT * FROM t1 DURATION ALL AFTER TO_DATE(‘1970-01-01 09:00:00’, ‘YYYY-MM-DD HH24:MI:SS’);
  • 7. DURATION FROM/TO 7 Past Now Scan direction Past Now2015-05-12 00:00:002015-05-10 00:00:00 Scan direction : Search and output data for the two days from May 12, 2015 to May 10, 2015 in reverse order. : Search and output data for the two days from May 10, 2015 to May 12, 2015 in sequential order. 2015-05-12 00:00:002015-05-10 00:00:00 FROM/TO search and output data based on the scope between the two specified times. The direction of scan will be changed depend on the time value of the specified times as shown below. SELECT * FROM t1 DURATION FROM TO_DATE(‘2015-05-12’, ‘YYYY-MM-DD’) TO TO_DATE(‘2015-05-10’, ‘YYYY-MM-DD’); 2 day data Time gap SELECT * FROM t1 DURATION FROM TO_DATE(‘2015-05-10’, ‘YYYY-MM-DD’) TO TO_DATE(‘2015-05-12’, ‘YYYY-MM-DD’); 2 day data Time gap
  • 8. The World's Fastest Time Series DBMS for IoT and Big Data www.infiniflux.com info@infiniflux.com InfiniFlux