Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAX(smallDateTime) returning 1/1/1900 1

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
US
Hello all --

Why would:

SELECT MAX(smallDateTimeField) FROM viewName

be returning 1/1/1900?????????

the view that I am using this on is a view of a view, if that has anything to do with it, but how would I get this to return the real max date from the view?

Thanks! :)
Paul Prewett
penny.gif
penny.gif
 
Welp... that didn't take long

had to CAST(field AS smalldatetime) in the view that I was viewing to get it to work.

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top