Hi, I have table below: I want to make query get first and last record from table and group by Type And result expects: Please give me advice. Regards.