I'm looking to query a Sybase Advantage Database Server using DATEPART. I get an error message that states the following "Scalar function not found: datepart". Is there another function that has similar functionality? I'm looking get a date's quarter. We are currently running version 9.0.
Asked
Active
Viewed 603 times
4
-
If you found an answer to your own question, please post it as an answer instead of editing your question to say "SOLVED". It's perfectly acceptable to do so here (see the [faq]), and you can even accept it as correct after a short period of time. Editing to add the solution to your question isn't proper here. Thanks. :-) – Ken White Apr 11 '13 at 01:23
2 Answers
2
Of course I find the answer right after posting... For finding the quarter specifically you can use the function QUARTER(date).

Keith Zerfas
- 61
- 7