Is there a way that I can expand an existing table into something like a view, replacing the (null) value with multiple records? Basically, (null) represents that the user has access to all the roles within a group.
For example, can I combine the following two tables:
| user | group | role |
|---|---|---|
| example1 | ABC | 100 |
| example1 | XYZ | 200 |
| example2 | ABC | (null) |
| group | role |
|---|---|
| ABC | 100 |
| ABC | 150 |
| ABC | 200 |
| ABC | 250 |
| ABC | 300 |
| XYZ | 200 |
| XYZ | 400 |
Into the following table view:
| user | group | role |
|---|---|---|
| example1 | ABC | 100 |
| example1 | XYZ | 200 |
| example2 | ABC | 100 |
| example2 | ABC | 150 |
| example2 | ABC | 200 |
| example2 | ABC | 250 |
| example2 | ABC | 300 |
Is there any way that this could be possible?