Provide a solution to split bills using data manipulation techniques.
Calculate each participant's net balance from confirmed bill transactions. Positive balances represent amounts to receive, while negative balances represent amounts owed. Ignore incomplete or unconfirmed records.
participant_name and net_balance.net_balance descending, then participant_name ascending.| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| person_name | VARCHAR(100) | Participant associated with the transaction |
| transaction_type | VARCHAR(20) | Whether the participant paid or owes a share |
| amount | DECIMAL(10,2) | Transaction amount |
| status | VARCHAR(20) | Transaction processing status |
| note | VARCHAR(255) | Optional transaction note |