I was trying to figure out how to insert data into a new join table using the column data from two other tables. This seemed at first simple, but wasn't immediately obvious now could I find the solution anyplace.
Example: I have tProfiles table:
select prof_id from tProfiles
prof_id
1
2
3
4
5
...
and table containing roles tRole
select roleid from tRole
roleid
1
2
3
4
5
6
7
...
and new tRoleByProfile needs all roles from tRole and all prof_id from tProfiles using an insert like this: insert into tRoleByProfile(RoleId, ProfileId)