Common functions in Sybase and general SQL