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 ...
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| 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? |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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.




Linear Mode
