i want to calculate the first-n and last-n, how it can be done?
i want to calculate the first-n and last-n, how it can be done?