Hello i have got a table with logs in which i want to insert a new log only if 2 minutes have passed from the last record that was FR Type.
The table looks like this:
+-------+--------------------+------+
| ID | update_time | Type |
+-------+--------------------+------+
| 1 | 2015-11-12 17:05:09| FR |
+-------+--------------------+------+