How to Print last 10 minutes result. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to Print last 10 minutes result.

How to Print last 10 minutes result in ORACLE-SQL, What is the query for that?

20th Nov 2016, 1:15 PM
Harsh Jora (Himanshu)
Harsh Jora (Himanshu) - avatar
2 Answers
+ 3
Is there a field in the table of your database that shows the datetime of entry? If so, use something like this: SELECT * FROM YourTable WHERE DATEDIFF(mi, YourTable.DateTimeFieldName, GETDDATE()) <= 10
23rd Nov 2016, 11:35 PM
Ben
0
save the time (e.g. unix encoded time) as a record with programming language and calc.
20th Nov 2016, 6:34 PM
Ali Talebi
Ali Talebi - avatar