add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 2  Duplicates: 0  Warnings: 0
id companyName
1 company 1
2 company 2
Records: 4  Duplicates: 0  Warnings: 0
id companyId agentName
1 1 agent 1
2 1 agent 2
3 2 agent 3
4 2 agent 4
Records: 6  Duplicates: 0  Warnings: 0
id agentId companyId saleAmount
1 1 1 10.00
2 1 1 15.00
3 2 1 11.00
4 2 1 12.00
5 3 2 15.00
6 4 2 14.00
id agentId companyId saleAmount id companyId agentName id companyName
1 1 1 10.00 1 1 agent 1 1 company 1
2 1 1 15.00 1 1 agent 1 1 company 1
3 2 1 11.00 2 1 agent 2 1 company 1
4 2 1 12.00 2 1 agent 2 1 company 1
5 3 2 15.00 3 2 agent 3 2 company 2
6 4 2 14.00 4 2 agent 4 2 company 2
companyName agentName totalSale companySale
company 1 agent 1 25.00 48.00
company 1 agent 2 23.00 48.00
company 2 agent 3 15.00 29.00
company 2 agent 4 14.00 29.00