I have a table like this:
Acct MasterAcct
------- -------------
123 M01
123 M02
234 M03
345 M04
456 M05
456 M06
456 M07
I'd like to break the MasterAcct column into three columns (Master1, Master2, Master3). An account can have up to three master accounts associated with it. Example output from the previous table would have account #456 on one row and then the three master account numbers in Master1, Master2, and Master3. Can anyone help?