RE: Proper syntax for a windowing function