I have table name datagraph
dat price
08/30/2004 23
09/1/2004 100
09/1/2004 21
09/1/2004 12
09/1/2004 32
I want to write Sql that show the highest price of today. I tried
sql="select max(price)from datagraph where dat like '%"&date()&"%')"
It does not work !!Which database server?|||To echo gannet, which database engine? It would also help if you could post the DDL for the table, since it looks like your dat column might be text of some kind instead of a date column.
-PatP|||it's access, and it's a text column
see http://www.dbforums.com/t1009057.html
gop373, use a DATE/TIME column
No comments:
Post a Comment