Source: https://www.chrisbilder.com/stat850/SAS/sql/SQL1per.pdf