I\'m struggling to find a way to get my desired output. It\'s the subquery that making it hard for me. Need some help pls.
TABLE: Sales DATE INVOICE#