12-06-2017 02:45 PM
Not sure about FedSQL, but but in PROC SQL you could mimic some of the window function by letting SQL re-merge statics with original data. That will be forced when there is mismatch between the GROUP BY clause and columns in the SELECT clause that doesn't contain any aggregate function. Also, this method is probably not as efficient a "true" window function performs with an appropriate implementation.
Can't tell though how you example should be resolved, a simple have and want sample data would help.