From: Martijn Tonies Date: March 7 2006 12:45pm Subject: Re: selecting records newer than say 20 min List-Archive: http://lists.mysql.com/mysql/195476 Message-Id: <0d5101c641e4$f3c8a640$cd02a8c0@martijnws> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hello Gregory, > What, is the easest way to select all the records created in the last 20 min > stay based on a column that has a timestamp record. select * from mytable where some_timestamp > date_add(current_timestamp, interval -15 minute) Martijn Tonies Database Workbench - development tool for MySQL, and more! Upscene Productions http://www.upscene.com My thoughts: http://blog.upscene.com/martijn/ Database development questions? Check the forum! http://www.databasedevelopmentforum.com