By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
10.9.2-MariaDB-1:10.9.2+maria~deb11 |
Records: 3 Duplicates: 0 Warnings: 0
Records: 6 Duplicates: 0 Warnings: 0
id | name | date | sell_num |
---|---|---|---|
1 | りんご | 2023-01-01 | 1 |
1 | りんご | 2023-01-02 | 2 |
2 | いちご | 2023-01-01 | 3 |
2 | いちご | 2023-01-02 | 3 |
3 | バナナ | 2023-01-01 | 3 |
3 | バナナ | 2023-01-02 | 4 |
id | name | date | sell_num | return_num |
---|---|---|---|---|
1 | りんご | 2023-01-01 | 1 | null |
1 | りんご | 2023-01-02 | 2 | null |
2 | いちご | 2023-01-01 | 3 | null |
2 | いちご | 2023-01-02 | 3 | null |
3 | バナナ | 2023-01-01 | 3 | null |
3 | バナナ | 2023-01-02 | 4 | null |
Records: 7 Duplicates: 0 Warnings: 0
id | name | date | num | num |
---|---|---|---|---|
1 | りんご | 2023-01-01 | 1 | null |
1 | りんご | 2023-01-02 | 2 | null |
2 | いちご | 2023-01-01 | 3 | null |
2 | いちご | 2023-01-02 | 3 | null |
3 | バナナ | 2023-01-01 | 3 | null |
3 | バナナ | 2023-01-02 | 4 | null |