bigest date in the date field

F

Faisal

How to find Bigest date in a date field for a query.


As i use max() function in date field it give any error message:Cannot have
aggregate function in WHERE clause <clause>. (Error 3096)


Regards
Faisal
Riyadh
 
J

John W. Vinson

How to find Bigest date in a date field for a query.


As i use max() function in date field it give any error message:Cannot have
aggregate function in WHERE clause <clause>. (Error 3096)


Regards
Faisal
Riyadh


This may be a better case for a Top Values query:

SELECT TOP 1 <whatever fields you want to see>
FROM tablename
ORDER BY datefield
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top