Why not try:
"SELECT min(some_column) AS least, max(some_column) AS greatest FROM some_table WHERE another_column='something'"
I'm not familiar with the least() and greatest() functions,
but from what I know, min() and max() should work on most (if not all) SQL servers.
I hope this helps!
-Rich