vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Greetings, Sorry if this questions is too basic. just wanna know if the max function in db2 gives the result based on the ascii value or in ascending order. I tried but not able to figure out the result. Any help will be greatly appreciated TIA |
| |||
| pankaj_wolfhunter@yahoo.co.in wrote: > Greetings, > Sorry if this questions is too basic. just wanna know if the max > function in db2 gives the result based on the ascii value or in > ascending order. I tried but not able to figure out the result. > Any help will be greatly appreciated > > TIA > Depends on your collation :-) If you use IDENTITY then the codepoint (ASCII for your run of the mill character) rules. If you use System, then typically aA is before bB etc..., but you can also use user defined collation or something funky as Thai-collation in Unicode, which gets really interesting... Cheers Serge -- Serge Rielau DB2 SQL Compiler Development IBM Toronto Lab |