Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

[NOVICE] WHERE clause with timestamp data type

From: Chirag Patel <patelc75(at)yahoo.com>
Date: Mon Aug 27 2007 - 00:49:29 EDT


The following command works great,
SELECT AVG(column) FROM table WHERE timestamp > 2007-08-23;

But when I try it with finer resolution (hour, minutes, seconds) like this, I get a syntax error SELECT AVG(heartrate) FROM heartrates WHERE timestamp > 2007-08-23 19:48:09;

Do I need to convert from string format to total number of seconds? Any ideas on how to get this work?

Thanks!
Chirag Received on Mon Aug 27 00:52:02 2007

This archive was generated by hypermail 2.1.8 : Mon Oct 08 2007 - 17:49:22 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library