how to limit the number of result rows in an sql select
Hello,
I run an ODBC query on a Progress database where we have Employees (table WERK) and Departments (table WAFD, linked by intersection table WEAF). I want to obtain only one result row for each employee with the most recent department they have worked in, but i get multiple rows: one for each department an employee has worked in the past. How can i limit the number of result rows per employee to just one?