How to write a query to find the time difference ?
time format is like this 2009-08-12 02:59:59
i want to compare this time with
2009-08-12 02:59:10
how to check these two
i want to return some row having the time difference is 30sec
how to write a SQL statement ??