dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Unexpected results for Max() function - ms-access

This is a discussion on Unexpected results for Max() function - ms-access ; Please forgive me, I'm very new to working with SQL and databases. I'm writing a small application that interfaces with an MS database. My query is simply "SELECT MAX(order_num) AS \'maxorder\' FROM ORDERS" But it doesn't return the correct order ...


Home > Database Forum > Other Databases > ms-access > Unexpected results for Max() function

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 09-10-2009, 12:44 PM
Database Newbie
 
Join Date: Sep 2009
Posts: 3
rjstacks is on a distinguished road
Default Unexpected results for Max() function

Please forgive me, I'm very new to working with SQL and databases.

I'm writing a small application that interfaces with an MS database. My query is simply "SELECT MAX(order_num) AS \'maxorder\' FROM ORDERS"

But it doesn't return the correct order number. It should return 27, instead it returns 9.

This function should return the highest number in the data column, excluding blank data entries, shouldn't it?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Help, trying to use MD5 function in external dll Database Administrator ms-access 2 11-12-2008 05:38 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Database Administrator Answers and FAQ 0 11-01-2008 06:00 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Database Administrator Answers and FAQ 0 09-01-2008 06:00 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Database Administrator Answers and FAQ 0 07-01-2008 06:00 AM
comp.lang.c Answers (Abridged) to Frequently Asked Questions (FAQ) Database Administrator Answers and FAQ 0 06-01-2008 06:00 AM


All times are GMT -4. The time now is 06:33 PM.