In the following section, some other advanced SQL techniques will be introduced:
- The DISTINCT ON clause, which helps to group records and take the first record for each group
- Selecting sample data from a very big table
- Set-returning functions, which are functions that return relations
- LATERAL joins, which allow subqueries to reference each other
- Advanced grouping techniques that can be used to generate reports
- Some special aggregating functions