On Sun, Jun 20, 2010 at 9:21 PM, Sam Carleton <scarle...@miltonstreet.com> wrote: > SELECT FolderId, ImageId, instertedon FROM V_FAVORITES_SELECTED > WHERE case when instertedon > julianday(@time) > then findLargeImage(@path, FolderId, ImageId) > else 0 end;
I think Igor wants you to add the lIMIT clause at the end of the above like so SELECT FolderId, ImageId, instertedon FROM V_FAVORITES_SELECTED WHERE case when instertedon > julianday(@time) then findLargeImage(@path, FolderId, ImageId) else 0 end LIMIT 1; -- Puneet Kishor http://www.punkish.org Carbon Model http://carbonmodel.org Charter Member, Open Source Geospatial Foundation http://www.osgeo.org Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor Nelson Institute, UW-Madison http://www.nelson.wisc.edu ----------------------------------------------------------------------- Assertions are politics; backing up assertions with evidence is science ======================================================================= _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users