creating multiple custom aggregation functions
问题 I have this table named Account. A simplified view of this table is as follows: acct_num | ssn | branch | open_date |close_date | has_product1 | has_product2 ---------------------------------------------------------------------------------------- 0123456 | 123456789 | 01 | 01/01/2000 | NULL | 1 | 0 0123457 | 123456789 | 02 | 03/05/2004 | NULL | 0 | 1 1234405 | 322145678 | 04 | 04/16/2016 | 05/01/2016 | 1 | 1 ... Notice how the ssn 123456789 has 2 accounts. I need to create a new data set that