|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
I am using SQL server 2005.
It does not support LEAST function. I am looking for a work around. |
|
#17
|
||||
|
||||
|
the workaround would be CASE expressions...
Code:
ORDER
BY CASE WHEN ABS(a_min - $a_value) < ABS(a_max - $a_value)
THEN ABS(a_min - $a_value) ELSE ABS(a_max - $a_value) END
+ CASE WHEN ...
|
|
#18
|
||||
|
||||
|
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > How to best store alloy compostion percentages? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|